EIMSK &= ~_BV(CC1100_INT);
// Going from RX to TX does not work if there was a reception less than 0.5
- // sec ago. Due to CCA? Using IDLE helps to shorten this period(?)
+- // sec ago. Due to CCA? Using IDLE helps to shorten this period(?)
- ccStrobe(CC1100_SIDLE);
- while(cnt-- && (ccStrobe( CC1100_STX ) & 0x70) != 2)
- my_delay_us(10);
++ // sec ago. Due to CCA? Wait for chip to enter TX state.
+
+ while (cc1100_readReg(CC1100_MARCSTATE) != MARCSTATE_TX) {
+ ccStrobe(CC1100_STX);