diff options
author | Keith Packard <keithp@keithp.com> | 2011-08-22 23:12:30 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-22 23:30:55 -0700 |
commit | 3a84e8e0cc86481c301f4335843a0e1a94bad5c0 (patch) | |
tree | bc9cd0165a77d3d976da4b15397e1f65382afb37 /altosui/AltosIdleMonitorUI.java | |
parent | afe6aba9cb91e93234ffee2a22eee40f848ddedd (diff) |
altosui: Make monitor-idle display correct 'On-board data logging' status
Count number of stored flights and see if there's space for another
one.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosIdleMonitorUI.java')
-rw-r--r-- | altosui/AltosIdleMonitorUI.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/altosui/AltosIdleMonitorUI.java b/altosui/AltosIdleMonitorUI.java index 0370efa9..142f0278 100644 --- a/altosui/AltosIdleMonitorUI.java +++ b/altosui/AltosIdleMonitorUI.java @@ -193,7 +193,7 @@ class AltosIdleMonitor extends Thread { record.version = 0; record.callsign = config_data.callsign; record.serial = config_data.serial; - record.flight = 0; + record.flight = config_data.log_available() > 0 ? 255 : 0; record.rssi = 0; record.status = 0; record.state = Altos.ao_flight_idle; |