Added the thermalstatus files which were missing.

This commit is contained in:
yellows8 2019-09-16 22:13:43 -04:00
parent 4cd4d34337
commit f9a1d8d35f
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
3 changed files with 36 additions and 0 deletions

7
common/thermalstatus.h Normal file
View File

@ -0,0 +1,7 @@
#pragma once
#include "common.h"
bool thermalstatusInit(void);
void thermalstatusExit(void);
bool thermalstatusGetDetails(s32 *temperature);

View File

@ -0,0 +1,14 @@
#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));
}

View File

@ -0,0 +1,15 @@
#include "../common/common.h"
bool thermalstatusInit(void) {
return false;
}
void thermalstatusExit(void) {
}
bool thermalstatusGetDetails(s32 *temperature) {
*temperature = 0;
return false;
}