Revert "altos: Don't abort radio transmissions with ao_radio_abort"
authorKeith Packard <keithp@keithp.com>
Thu, 25 Nov 2010 07:54:08 +0000 (23:54 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 25 Nov 2010 08:01:58 +0000 (00:01 -0800)
This reverts commit 54468e5dc567aaac5c5c20e921859b7cec28bb88.

With this patch in place, TD could not be placed in 'packet' mode.

src/ao_radio.c

index 67d5f6bad7e7272190cb2b967c311c69efeb7af4..cafa7010b0ab29e802d3694dcb2de187e102faf6 100644 (file)
@@ -432,11 +432,8 @@ ao_radio_rdf(int ms)
 void
 ao_radio_abort(void)
 {
 void
 ao_radio_abort(void)
 {
-       /* Only abort if a task is waiting to receive data */
-       if (RFST == RFST_SRX) {
-               ao_dma_abort(ao_radio_dma);
-               ao_radio_idle();
-       }
+       ao_dma_abort(ao_radio_dma);
+       ao_radio_idle();
 }
 
 void
 }
 
 void