From f9a1d8d35fbee59b9ecb070de089a5c7db80ae47 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Mon, 16 Sep 2019 22:13:43 -0400 Subject: [PATCH] Added the thermalstatus files which were missing. --- common/thermalstatus.h | 7 +++++++ nx_main/nx_thermalstatus.c | 14 ++++++++++++++ pc_main/pc_thermalstatus.c | 15 +++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 common/thermalstatus.h create mode 100644 nx_main/nx_thermalstatus.c create mode 100644 pc_main/pc_thermalstatus.c diff --git a/common/thermalstatus.h b/common/thermalstatus.h new file mode 100644 index 0000000..12c1183 --- /dev/null +++ b/common/thermalstatus.h @@ -0,0 +1,7 @@ +#pragma once +#include "common.h" + +bool thermalstatusInit(void); +void thermalstatusExit(void); +bool thermalstatusGetDetails(s32 *temperature); + diff --git a/nx_main/nx_thermalstatus.c b/nx_main/nx_thermalstatus.c new file mode 100644 index 0000000..3b35baf --- /dev/null +++ b/nx_main/nx_thermalstatus.c @@ -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)); +} + diff --git a/pc_main/pc_thermalstatus.c b/pc_main/pc_thermalstatus.c new file mode 100644 index 0000000..1ecac2f --- /dev/null +++ b/pc_main/pc_thermalstatus.c @@ -0,0 +1,15 @@ +#include "../common/common.h" + +bool thermalstatusInit(void) { + return false; +} + +void thermalstatusExit(void) { + +} + +bool thermalstatusGetDetails(s32 *temperature) { + *temperature = 0; + return false; +} +