Fix temperature display on [14.0.0+].
This commit is contained in:
parent
34f7f16cb1
commit
7bdfce172c
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user