diff options
author | Keith Packard <keithp@keithp.com> | 2011-08-28 16:39:41 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-28 16:39:41 -0700 |
commit | 9b9568a637ffdbc67225271005f2b996ee08a0df (patch) | |
tree | 51beaa177f44c330d7005f0c50049eced32fa458 /src/core/ao_monitor.c | |
parent | 31e3255b6cbfaf95c0e97e2d1ec8de72f845994c (diff) |
altos: add 'report' to telebt
This beeps out flight state changes and max altitude at landing, just
like the altimeter.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_monitor.c')
-rw-r--r-- | src/core/ao_monitor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ao_monitor.c b/src/core/ao_monitor.c index 382af8a2..56d7604d 100644 --- a/src/core/ao_monitor.c +++ b/src/core/ao_monitor.c @@ -22,7 +22,7 @@ #error Must define HAS_MONITOR to 1 #endif -__xdata uint8_t ao_monitoring; +__data uint8_t ao_monitoring; __pdata uint8_t ao_monitor_led; __xdata union ao_monitor ao_monitor_ring[AO_MONITOR_RING]; @@ -37,7 +37,7 @@ ao_monitor_get(void) for (;;) { switch (ao_monitoring) { case 0: - ao_sleep(&ao_monitoring); + ao_sleep(DATA_TO_XDATA(&ao_monitoring)); continue; case AO_MONITORING_ORIG: size = sizeof (struct ao_telemetry_orig_recv); @@ -262,7 +262,7 @@ ao_set_monitor(uint8_t monitoring) if (ao_monitoring) ao_radio_recv_abort(); ao_monitoring = monitoring; - ao_wakeup(&ao_monitoring); + ao_wakeup(DATA_TO_XDATA(&ao_monitoring)); } static void |