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)
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>

No differences found