Changed the temperature format str from .3f to .1f.

This commit is contained in:
yellows8 2019-09-16 22:03:59 -04:00
parent ebde1f4670
commit 4cd4d34337
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43

View File

@ -517,7 +517,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, "%.3f °C", ((float)temperature) / 1000); snprintf(tmpstr, sizeof(tmpstr)-1, "%.1f °C", ((float)temperature) / 1000);
u32 tmpX = GetTextXCoordinate(interuiregular14, 1180, tmpstr, 'r'); u32 tmpX = GetTextXCoordinate(interuiregular14, 1180, tmpstr, 'r');
DrawText(interuiregular14, tmpX, 0 + 47 + 10 + 48, themeCurrent.textColor, tmpstr); DrawText(interuiregular14, tmpX, 0 + 47 + 10 + 48, themeCurrent.textColor, tmpstr);
} }