summaryrefslogtreecommitdiff
path: root/aoview/aoview_monitor.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-06-03 17:07:34 -0700
committerKeith Packard <keithp@keithp.com>2009-06-03 17:07:34 -0700
commit778cae8fc5a4b30e5045e4703316fc61ae18562a (patch)
treea41fd281ebc0124a4ca6fd13a84f2ab01130d53e /aoview/aoview_monitor.c
parentbf140966e9649e75b884c8aa5f25ffbf9eed10ea (diff)
aoview: Add eeprom data fetching
Fetches the last flight data from a TM device connected via USB and writes it to the flight log directory. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'aoview/aoview_monitor.c')
-rw-r--r--aoview/aoview_monitor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/aoview/aoview_monitor.c b/aoview/aoview_monitor.c
index 0fd535f2..e2ba75ba 100644
--- a/aoview/aoview_monitor.c
+++ b/aoview/aoview_monitor.c
@@ -88,8 +88,7 @@ aoview_monitor_parse(char *line)
return;
aoview_parse_string(state.callsign, sizeof (state.callsign), words[1]);
aoview_parse_int(&state.serial, words[3]);
- if (!aoview_log_get_serial())
- aoview_log_set_serial(state.serial);
+ aoview_log_set_serial(state.serial);
aoview_parse_int(&state.rssi, words[5]);
aoview_parse_string(state.state, sizeof (state.state), words[9]);