From 7bdfce172ca8f26f3018a53c6e69e650d07e0a4e Mon Sep 17 00:00:00 2001 From: yellows8 Date: Thu, 24 Mar 2022 20:53:19 -0400 Subject: [PATCH] Fix temperature display on [14.0.0+]. --- common/menu.c | 2 +- nx_main/nx_thermalstatus.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/menu.c b/common/menu.c index 5bdb82a3..b7a276fc 100644 --- a/common/menu.c +++ b/common/menu.c @@ -593,7 +593,7 @@ u32 drawStatus() { if (statusGet(&netstatusFlag, &id, &temperatureFlag, &temperature)) { if (netstatusFlag) drawNetwork(tmpX, id); if (temperatureFlag) { - snprintf(tmpstr, sizeof(tmpstr)-1, "%.1f°C", ((float)temperature) / 1000); + snprintf(tmpstr, sizeof(tmpstr)-1, "%d°C", temperature); DrawTextFromLayout(ThemeLayoutId_Temperature, themeCurrent.textColor, tmpstr); } } diff --git a/nx_main/nx_thermalstatus.c b/nx_main/nx_thermalstatus.c index 3b35baf0..d3ab27ba 100644 --- a/nx_main/nx_thermalstatus.c +++ b/nx_main/nx_thermalstatus.c @@ -9,6 +9,6 @@ void thermalstatusExit(void) { } bool thermalstatusGetDetails(s32 *temperature) { - return R_SUCCEEDED(tsGetTemperatureMilliC(TsLocation_Internal, temperature)); + return R_SUCCEEDED(tsGetTemperature(TsLocation_Internal, temperature)); }