Skip to content

Commit

Permalink
use min 3000mv to calculate battery percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarzen committed Feb 17, 2024
1 parent 607a0ba commit 6400b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platformio/src/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ void drawStatusBar(const String &statusStr, const String &refreshTimeStr,
#if BATTERY_MONITORING
// battery
uint32_t batPercent = calcBatPercent(batVoltage,
LOW_BATTERY_VOLTAGE,
CRIT_LOW_BATTERY_VOLTAGE,
MAX_BATTERY_VOLTAGE);
#if defined(DISP_3C_B) || defined(DISP_7C_F)
if (batVoltage < WARN_BATTERY_VOLTAGE) {
Expand Down

0 comments on commit 6400b00

Please sign in to comment.