1
0
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:
Rhys Weatherley 2012-05-20 14:45:26 +10:00
parent 26ec45a659
commit 2a57b2ff15

View File

@ -111,6 +111,7 @@ void FrontScreenField::setVoltage(int voltage)
if (ind != _batteryBars || trunc != _voltageTrunc) {
_batteryBars = ind;
_voltageTrunc = trunc;
if (isCurrent())
updateVoltage();
}
}