Added the thermalstatus files which were missing.
This commit is contained in:
parent
4cd4d34337
commit
f9a1d8d35f
7
common/thermalstatus.h
Normal file
7
common/thermalstatus.h
Normal file
@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
#include "common.h"
|
||||
|
||||
bool thermalstatusInit(void);
|
||||
void thermalstatusExit(void);
|
||||
bool thermalstatusGetDetails(s32 *temperature);
|
||||
|
14
nx_main/nx_thermalstatus.c
Normal file
14
nx_main/nx_thermalstatus.c
Normal 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));
|
||||
}
|
||||
|
15
pc_main/pc_thermalstatus.c
Normal file
15
pc_main/pc_thermalstatus.c
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user