Skip to content

Commit

Permalink
timing fixed - send failed if debug not active, because radio goes to
Browse files Browse the repository at this point in the history
fast into idle
  • Loading branch information
pa-pa committed Nov 9, 2017
1 parent 601ab29 commit 3d54067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Radio.h
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ class Radio {
uint8_t i=200;
do {
spi.strobe(CC1101_STX);
_delay_us(10);
_delay_us(100);
if( --i == 0 ) {
// can not enter TX state - reset fifo
spi.strobe(CC1101_SIDLE );
Expand All @@ -694,7 +694,7 @@ class Radio {
for(uint8_t i = 0; i < 200; i++) { // after sending out all bytes the chip should go automatically in RX mode
if( spi.readReg(CC1101_MARCSTATE, CC1101_STATUS) == MARCSTATE_RX)
break; //now in RX mode, good
_delay_us(10);
_delay_us(100);
}
sending = 0;
return true;
Expand Down

0 comments on commit 3d54067

Please sign in to comment.