Skip to content

Commit

Permalink
Remove unused variable in CO2_Gadget_Battery.h Fixes #194
Browse files Browse the repository at this point in the history
  • Loading branch information
melkati committed Mar 17, 2024
1 parent 01c9151 commit 8553469
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions CO2_Gadget_Battery.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ void readBatteryVoltage() {
// }

void batteryLoop() {
float batteryVoltageNow = 0;
readBatteryVoltage();
// Serial.printf("-->[BATT] Battery Level: %d%%. Battery voltage: %.4fV\n", batteryLevel, batteryVoltageNow);
if (!inMenu) {
if (abs(lastBatteryVoltage - batteryVoltage) >= 0.1) { // If battery voltage changed by at least 0.1V, update battery level
// Serial.printf("-->[BATT] Battery Level: %d%%. Battery voltage changed from: %.4fV to %.4fV\n", batteryLevel, lastBatteryVoltage, batteryVoltage);
Expand Down

0 comments on commit 8553469

Please sign in to comment.