Skip to content

Commit

Permalink
Merge pull request #12431 from benpicco/mrf24j40-fix_reset
Browse files Browse the repository at this point in the history
drivers/mrf24j40: don't loop in mrf24j40_reset_state_machine()
  • Loading branch information
leandrolanzieri authored Oct 14, 2019
2 parents 8a1e78b + 853bbaf commit bfd81c1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/mrf24j40/mrf24j40_getset.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,14 +476,9 @@ void mrf24j40_assert_awake(mrf24j40_t *dev)

void mrf24j40_reset_state_machine(mrf24j40_t *dev)
{
uint8_t rfstate;

mrf24j40_reg_write_short(dev, MRF24J40_REG_RFCTL, MRF24J40_RFCTL_RFRST);
mrf24j40_reg_write_short(dev, MRF24J40_REG_RFCTL, 0x00);
xtimer_usleep(MRF24J40_STATE_RESET_DELAY); /* Delay at least 192us */
do {
rfstate = mrf24j40_reg_read_long(dev, MRF24J40_REG_RFSTATE);
} while ((rfstate & MRF24J40_RFSTATE_MASK) != MRF24J40_RFSTATE_RX);
}

void mrf24j40_software_reset(mrf24j40_t *dev)
Expand Down

0 comments on commit bfd81c1

Please sign in to comment.