summaryrefslogtreecommitdiff
path: root/ao_radio.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-21 02:07:24 -0700
committerKeith Packard <keithp@keithp.com>2009-04-21 02:07:24 -0700
commitd87e9c25947d7cc2eba8894a524977f2c55a089a (patch)
tree0b9313408718497040b7290c8fd0415c353ff224 /ao_radio.c
parent1b333def5052d2ed47fdeaef23a897fe326f6340 (diff)
Clean up telemetry now that all packets are the same
Diffstat (limited to 'ao_radio.c')
-rw-r--r--ao_radio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ao_radio.c b/ao_radio.c
index 5ff6f9bf..13362d3e 100644
--- a/ao_radio.c
+++ b/ao_radio.c
@@ -217,7 +217,7 @@ ao_radio_send(__xdata struct ao_telemetry *telemetry) __reentrant
DMA_CFG1_PRIORITY_HIGH);
ao_dma_start(ao_radio_dma);
RFST = RFST_STX;
- while (!ao_radio_dma_done)
+ __critical while (!ao_radio_dma_done)
ao_sleep(&ao_radio_dma_done);
ao_mutex_put(&ao_radio_mutex);
}
@@ -239,7 +239,7 @@ ao_radio_recv(__xdata struct ao_radio_recv *radio) __reentrant
DMA_CFG1_PRIORITY_HIGH);
ao_dma_start(ao_radio_dma);
RFST = RFST_SRX;
- while (!ao_radio_dma_done)
+ __critical while (!ao_radio_dma_done)
ao_sleep(&ao_radio_dma_done);
ao_mutex_put(&ao_radio_mutex);
}