Skip to content

Commit

Permalink
Fix LED visualization for battery measurement if a battery module oth…
Browse files Browse the repository at this point in the history
…er than voltage is used
  • Loading branch information
SZenglein authored Dec 4, 2023
1 parent 8407213 commit 8ba52b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Led.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ AnimationReturnType Animation_BatteryMeasurement(const bool startNewAnimation, C
LED_INDICATOR_CLEAR(LedIndicatorType::Voltage);

if (startNewAnimation) {
#ifdef MEASURE_BATTERY_VOLTAGE
#ifdef BATTERY_MEASURE_ENABLE
float batteryLevel = Battery_EstimateLevel();
#else
float batteryLevel = 1.0f;
Expand Down

0 comments on commit 8ba52b8

Please sign in to comment.