summaryrefslogtreecommitdiff
path: root/ao_gps.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-21 01:17:03 -0700
committerKeith Packard <keithp@keithp.com>2009-04-21 01:17:03 -0700
commitd1887ded41a5bfec8e10e9fd736fa9444b9b6222 (patch)
tree936c2e251c195d80e13a0754931ba188fbf7e5ad /ao_gps.c
parent43c8f7012102cdb591ace899420c10e4a78385ad (diff)
Fix up fancy dbg stuff. Add teleterra initial bits.
The dbg stuff needed a bit of help to actually walk the tables; it appears that complex expressions confuse sdcc. This also adds primitive teleterra bits, but no UI, etc. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao_gps.c')
-rw-r--r--ao_gps.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ao_gps.c b/ao_gps.c
index 80b96aa7..651a59e5 100644
--- a/ao_gps.c
+++ b/ao_gps.c
@@ -257,7 +257,6 @@ void
ao_gps_report(void)
{
static __xdata struct ao_log_record gps_log;
- static __xdata struct ao_telemetry gps_telemetry;
static __xdata struct ao_gps_data gps_data;
for (;;) {
@@ -287,9 +286,6 @@ ao_gps_report(void)
gps_log.u.gps_altitude.altitude = gps_data.altitude;
gps_log.u.gps_altitude.unused = 0xffff;
ao_log_data(&gps_log);
- gps_telemetry.type = AO_TELEMETRY_GPS;
- memcpy(&gps_telemetry.u.gps, &gps_data, sizeof (struct ao_gps_data));
- ao_telemetry_send(&gps_telemetry);
}
}
@@ -306,7 +302,7 @@ gps_dump(void) __reentrant
}
__code struct ao_cmds ao_gps_cmds[] = {
- { 'g', gps_dump, "g Display current GPS values\n" },
+ { 'g', gps_dump, "g Display current GPS values" },
{ 0, gps_dump, NULL },
};