* 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.
15 lines
287 B
C
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));
|
|
}
|
|
|