summaryrefslogtreecommitdiff
path: root/src/ao_monitor.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-01-15 16:25:10 -0800
committerKeith Packard <keithp@keithp.com>2011-01-16 14:32:47 -0800
commit47ee4597e55749e8f66f61a585ea32776979bf80 (patch)
treee6ab8a9500a19109cf9f8e554ae39ee5167ee4e1 /src/ao_monitor.c
parentb22ba359a02297e39a446cbd5ef51e63b795624a (diff)
altos: TELEMETRY PROTOCOL CHANGE. Switch to 16-bit serial numbers.
What a terrible mistake! The flight computer serial numbers were recorded in only 8 bits, so serial numbers > 255 would get truncated. There's really no fix other than bumping the field to 16 bits and reflashing every TM and TD on the planet. Very unfortunate. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_monitor.c')
-rw-r--r--src/ao_monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ao_monitor.c b/src/ao_monitor.c
index 1e7f5102..4ba3da6d 100644
--- a/src/ao_monitor.c
+++ b/src/ao_monitor.c
@@ -41,10 +41,10 @@ ao_monitor(void)
if (state > ao_flight_invalid)
state = ao_flight_invalid;
if (recv.status & PKT_APPEND_STATUS_1_CRC_OK) {
- printf("VERSION %d CALL %s SERIAL %3d FLIGHT %5u RSSI %4d STATUS %02x STATE %7s ",
+ printf("VERSION %d CALL %s SERIAL %d FLIGHT %5u RSSI %4d STATUS %02x STATE %7s ",
AO_TELEMETRY_VERSION,
callsign,
- recv.telemetry.addr,
+ recv.telemetry.serial,
recv.telemetry.flight,
rssi, recv.status,
ao_state_names[state]);