2 ===================================================================
3 --- clib/cc1100.c (revision 373)
4 +++ clib/cc1100.c (working copy)
10 EIMSK &= ~_BV(CC1100_INT);
12 // Going from RX to TX does not work if there was a reception less than 0.5
13 - // sec ago. Due to CCA? Using IDLE helps to shorten this period(?)
14 - ccStrobe(CC1100_SIDLE);
15 - while(cnt-- && (ccStrobe( CC1100_STX ) & 0x70) != 2)
17 + // sec ago. Due to CCA? Wait for chip to enter TX state.
19 + while (cc1100_readReg(CC1100_MARCSTATE) != MARCSTATE_TX) {
20 + ccStrobe(CC1100_STX);
24 //--------------------------------------------------------------------
29 + while (cc1100_readReg(CC1100_MARCSTATE) != MARCSTATE_RX) {
30 + ccStrobe(CC1100_SRX);
33 - while(cnt-- && (ccStrobe( CC1100_SRX ) & 0x70) != 1)
35 EIMSK |= _BV(CC1100_INT);