nx-hbmenu/nx_main/nx_thermalstatus.c
yellows8 793b912efd
Thermal display (closes #99) (#102)
* Display the temperature status. Moved statusGet code from drawNetwork() into drawStatus(). Added types in common.h to fix building with latest libnx nacp.h, with the pc-build.
2019-09-17 11:47:58 -04:00

15 lines
287 B
C

#include "../common/common.h"
bool thermalstatusInit(void) {
return R_SUCCEEDED(tsInitialize());
}
void thermalstatusExit(void) {
tsExit();
}
bool thermalstatusGetDetails(s32 *temperature) {
return R_SUCCEEDED(tsGetTemperatureMilliC(TsLocation_Internal, temperature));
}