summaryrefslogtreecommitdiff
path: root/ao-tools
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-08-17 20:55:34 -0700
committerKeith Packard <keithp@keithp.com>2014-08-17 20:55:34 -0700
commit830f31fd6dc280e7a63ba689b7a48beff5c49072 (patch)
treef8f639703f3c5356046db67e4da8e39fec623043 /ao-tools
parent629b29b2718c174be9c811f224d0acf73fba4aff (diff)
ao-tools/ao-send-telem: Support sending TM v2 and Tm v2 telemetry
Add state tracking so the telemetry sending code works. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools')
-rw-r--r--ao-tools/ao-send-telem/ao-send-telem.c6
-rw-r--r--ao-tools/lib/cc-telemetry.c1
2 files changed, 6 insertions, 1 deletions
diff --git a/ao-tools/ao-send-telem/ao-send-telem.c b/ao-tools/ao-send-telem/ao-send-telem.c
index 3db44542..26c3263e 100644
--- a/ao-tools/ao-send-telem/ao-send-telem.c
+++ b/ao-tools/ao-send-telem/ao-send-telem.c
@@ -85,6 +85,12 @@ packet_state(union ao_telemetry_all *telem)
case AO_TELEMETRY_MEGA_DATA:
cur_state = telem->mega_data.state;
break;
+ case AO_TELEMETRY_METRUM_SENSOR:
+ cur_state = telem->metrum_sensor.state;
+ break;
+ case AO_TELEMETRY_MINI:
+ cur_state = telem->mini.state;
+ break;
}
return cur_state;
}
diff --git a/ao-tools/lib/cc-telemetry.c b/ao-tools/lib/cc-telemetry.c
index 88da7f03..45c10dcb 100644
--- a/ao-tools/lib/cc-telemetry.c
+++ b/ao-tools/lib/cc-telemetry.c
@@ -89,4 +89,3 @@ cc_telemetry_unparse(const union ao_telemetry_all *telemetry, char output_line[C
p += 2;
}
}
-