Skip to content

Commit

Permalink
Fix temperature display on [14.0.0+].
Browse files Browse the repository at this point in the history
  • Loading branch information
yellows8 committed Mar 25, 2022
1 parent 34f7f16 commit 7bdfce1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion nx_main/nx_thermalstatus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

0 comments on commit 7bdfce1

Please sign in to comment.