altosuilib: Don't flicker missing voltages when changing units
authorKeith Packard <keithp@keithp.com>
Wed, 11 May 2016 06:04:23 +0000 (23:04 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 12 May 2016 06:22:15 +0000 (23:22 -0700)
commitb2710128a715a109745ec40553a3d4149a7f49ab
treed0e9434210cecffec90d48a3c52b32811c631f48
parent895cb58a6cd7424ee63c24d791b5988f41f85d31
altosuilib: Don't flicker missing voltages when changing units

For some reason, a value of MISSING -1 was getting used, which caused
displays to light up briefly with a weird value when switching between
metric and imperial units.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosuilib/AltosUIUnitsIndicator.java
altosuilib/AltosUIVoltageIndicator.java