Fix temperature display on [14.0.0+].

This commit is contained in:
yellows8 2022-03-24 20:53:19 -04:00
parent 34f7f16cb1
commit 7bdfce172c
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 2 additions and 2 deletions

View File

@ -593,7 +593,7 @@ u32 drawStatus() {
if (statusGet(&netstatusFlag, &id, &temperatureFlag, &temperature)) { if (statusGet(&netstatusFlag, &id, &temperatureFlag, &temperature)) {
if (netstatusFlag) drawNetwork(tmpX, id); if (netstatusFlag) drawNetwork(tmpX, id);
if (temperatureFlag) { 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); DrawTextFromLayout(ThemeLayoutId_Temperature, themeCurrent.textColor, tmpstr);
} }
} }

View File

@ -9,6 +9,6 @@ void thermalstatusExit(void) {
} }
bool thermalstatusGetDetails(s32 *temperature) { bool thermalstatusGetDetails(s32 *temperature) {
return R_SUCCEEDED(tsGetTemperatureMilliC(TsLocation_Internal, temperature)); return R_SUCCEEDED(tsGetTemperature(TsLocation_Internal, temperature));
} }