mirror of
https://github.com/taigrr/arduinolibs
synced 2026-04-14 11:40:40 -07:00
Only display voltage if front screen is current
This commit is contained in:
@@ -111,7 +111,8 @@ void FrontScreenField::setVoltage(int voltage)
|
||||
if (ind != _batteryBars || trunc != _voltageTrunc) {
|
||||
_batteryBars = ind;
|
||||
_voltageTrunc = trunc;
|
||||
updateVoltage();
|
||||
if (isCurrent())
|
||||
updateVoltage();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user