diff options
| author | Keith Packard <keithp@keithp.com> | 2009-10-30 16:39:15 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2009-10-30 16:39:15 -0700 |
| commit | 7b14c3e609749f4fc00dbd660541375048535218 (patch) | |
| tree | f541994c38eb4df935bd0113cf948742d8ef8bdf /src/ao_monitor.c | |
| parent | 690fc263516d8beb6b24e86fbcd6588f42ce4e5c (diff) | |
Initial packet bits. Just testing transmission
Diffstat (limited to 'src/ao_monitor.c')
| -rw-r--r-- | src/ao_monitor.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ao_monitor.c b/src/ao_monitor.c index e57ea145..9431f726 100644 --- a/src/ao_monitor.c +++ b/src/ao_monitor.c @@ -30,7 +30,8 @@ ao_monitor(void) for (;;) { __critical while (!ao_monitoring) ao_sleep(&ao_monitoring); - ao_radio_recv(&recv); + if (!ao_radio_recv(&recv)) + continue; state = recv.telemetry.flight_state; memcpy(callsign, recv.telemetry.callsign, AO_MAX_CALLSIGN); if (state > ao_flight_invalid) @@ -74,6 +75,7 @@ ao_set_monitor(uint8_t monitoring) { ao_monitoring = monitoring; ao_wakeup(&ao_monitoring); + ao_radio_abort(AO_DMA_ABORTED); } static void |
