Skip to content

Commit

Permalink
nrf24l01p: Remove superfluous delays in _on, _off.
Browse files Browse the repository at this point in the history
Signed-off-by: Joakim Gebart <[email protected]>
  • Loading branch information
Joakim Gebart committed Jan 19, 2015
1 parent 49c7306 commit b7baf85
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/nrf24l01p/nrf24l01p.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,7 @@ int nrf24l01p_on(nrf24l01p_t *dev)
int status;

nrf24l01p_read_reg(dev, REG_CONFIG, &read);
hwtimer_spin(DELAY_CS_TOGGLE_TICKS);
status = nrf24l01p_write_reg(dev, REG_CONFIG, (read | PWR_UP));
hwtimer_spin(DELAY_CS_TOGGLE_TICKS);

hwtimer_wait(DELAY_CHANGE_PWR_MODE_US);

Expand All @@ -217,9 +215,7 @@ int nrf24l01p_off(nrf24l01p_t *dev)
int status;

nrf24l01p_read_reg(dev, REG_CONFIG, &read);
hwtimer_spin(DELAY_CS_TOGGLE_TICKS);
status = nrf24l01p_write_reg(dev, REG_CONFIG, (read & ~PWR_UP));
hwtimer_spin(DELAY_CS_TOGGLE_TICKS);

hwtimer_wait(DELAY_CHANGE_PWR_MODE_US);

Expand Down

0 comments on commit b7baf85

Please sign in to comment.