mirror of
https://github.com/taigrr/arduinolibs
synced 2025-01-18 04:33:12 -08:00
Only display voltage if front screen is current
This commit is contained in:
parent
26ec45a659
commit
2a57b2ff15
@ -111,6 +111,7 @@ void FrontScreenField::setVoltage(int voltage)
|
|||||||
if (ind != _batteryBars || trunc != _voltageTrunc) {
|
if (ind != _batteryBars || trunc != _voltageTrunc) {
|
||||||
_batteryBars = ind;
|
_batteryBars = ind;
|
||||||
_voltageTrunc = trunc;
|
_voltageTrunc = trunc;
|
||||||
|
if (isCurrent())
|
||||||
updateVoltage();
|
updateVoltage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user