Added battery temperature to battery gauge page display. Updated firmware date

This commit is contained in:
pelgraine
2026-02-23 08:48:06 +11:00
parent 6e417d1f3e
commit 7f8f70655d
4 changed files with 25 additions and 5 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
#define FIRMWARE_VER_CODE 8
#ifndef FIRMWARE_BUILD_DATE
#define FIRMWARE_BUILD_DATE "22 Feb 2026"
#define FIRMWARE_BUILD_DATE "23 Feb 2026"
#endif
#ifndef FIRMWARE_VERSION
@@ -647,6 +647,13 @@ public:
display.drawTextLeftAlign(0, y, "remaining cap");
sprintf(buf, "%d mAh", remCap);
display.drawTextRightAlign(display.width()-1, y, buf);
y += 10;
// Battery temperature
int16_t battTemp = board.getBattTemperature();
display.drawTextLeftAlign(0, y, "temperature");
sprintf(buf, "%d.%d C", battTemp / 10, abs(battTemp % 10));
display.drawTextRightAlign(display.width()-1, y, buf);
#endif
} else if (_page == HomePage::SHUTDOWN) {
display.setColor(DisplayDriver::GREEN);