changed firmware version date; changed render battery indicator back to meshcore app display method

This commit is contained in:
pelgraine
2026-02-17 18:55:10 +11:00
parent 8e83155698
commit f2956e9d26
2 changed files with 2 additions and 14 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
#define FIRMWARE_VER_CODE 8
#ifndef FIRMWARE_BUILD_DATE
#define FIRMWARE_BUILD_DATE "16 Feb 2026"
#define FIRMWARE_BUILD_DATE "17 Feb 2026"
#endif
#ifndef FIRMWARE_VERSION
+1 -13
View File
@@ -118,12 +118,8 @@ class HomeScreen : public UIScreen {
void renderBatteryIndicator(DisplayDriver& display, uint16_t batteryMilliVolts, int* outIconX = nullptr) {
// Use voltage-based estimation to match BLE app readings
uint8_t batteryPercentage = 0;
#if HAS_BQ27220
// Use fuel gauge SOC directly — accurate across the full discharge curve
batteryPercentage = board.getBatteryPercent();
#else
// Fallback: voltage-based linear estimation for boards without fuel gauge
if (batteryMilliVolts > 0) {
const int minMilliVolts = 3000;
const int maxMilliVolts = 4200;
@@ -132,7 +128,6 @@ void renderBatteryIndicator(DisplayDriver& display, uint16_t batteryMilliVolts,
if (pct > 100) pct = 100;
batteryPercentage = (uint8_t)pct;
}
#endif
display.setColor(DisplayDriver::GREEN);
@@ -618,13 +613,6 @@ public:
display.drawTextLeftAlign(0, y, "remaining cap");
sprintf(buf, "%d mAh", remCap);
display.drawTextRightAlign(display.width()-1, y, buf);
y += 10;
// Full charge capacity (learned value)
uint16_t fullCap = board.getFullChargeCapacity();
display.drawTextLeftAlign(0, y, "full charge cap");
sprintf(buf, "%d mAh", fullCap);
display.drawTextRightAlign(display.width()-1, y, buf);
#endif
} else if (_page == HomePage::SHUTDOWN) {
display.setColor(DisplayDriver::GREEN);