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)
18 + while (cc1100_readReg(CC1100_MARCSTATE) != MARCSTATE_TX) {
19 + ccStrobe(CC1100_STX);
23 //--------------------------------------------------------------------
28 + while (cc1100_readReg(CC1100_MARCSTATE) != MARCSTATE_RX) {
29 + ccStrobe(CC1100_SRX);
32 - while(cnt-- && (ccStrobe( CC1100_SRX ) & 0x70) != 1)
34 EIMSK |= _BV(CC1100_INT);