diff options
| author | Keith Packard <keithp@keithp.com> | 2009-04-21 02:07:24 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2009-04-21 02:07:24 -0700 | 
| commit | d87e9c25947d7cc2eba8894a524977f2c55a089a (patch) | |
| tree | 0b9313408718497040b7290c8fd0415c353ff224 /ao_radio.c | |
| parent | 1b333def5052d2ed47fdeaef23a897fe326f6340 (diff) | |
Clean up telemetry now that all packets are the same
Diffstat (limited to 'ao_radio.c')
| -rw-r--r-- | ao_radio.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -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);  } | 
