add working routines to turn the mc1322x radio on and off

This commit is contained in:
Mariano Alvira 2013-02-03 14:48:38 -05:00
parent f57ccf41e7
commit ad55ccdec4
3 changed files with 68 additions and 10 deletions

View file

@ -265,7 +265,7 @@ int contiki_maca_transmit(unsigned short transmit_len) {
#if BLOCKING_TX
/* block until tx_complete, set by contiki_maca_tx_callback */
while(!tx_complete && (tx_head != 0));
while((maca_pwr == 1) && !tx_complete && (tx_head != 0)) { continue; }
#endif
}