altosui: Catch errors in state value when saving flight logs
authorKeith Packard <keithp@keithp.com>
Sun, 9 Sep 2012 19:20:08 +0000 (12:20 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 9 Sep 2012 19:20:08 +0000 (12:20 -0700)
commitd65d921b9b2340fa23d3b55b4ae755324d392303
tree03ca7666a09818d82cfd6cd17340288c89e951b3
parentc5e98d2b226824f2012e5710ac4b1596b9f0bfb1
altosui: Catch errors in state value when saving flight logs

Use AltosLib.state_name() instead of directly accessing the
state_to_string array so that any invalid state values are caught and
replaced with 'invalid' instead of raising an exception.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosEepromDownload.java