mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/nrf24l01p_ng: ARD conversion bugfix
This commit is contained in:
parent
d7f3e92c30
commit
85a84aa957
@ -232,7 +232,10 @@ nrf24l01p_ng_ard_t nrf24l01p_ng_valtoe_ard(uint16_t retr_delay)
|
||||
if (retr_delay >= 4000) {
|
||||
return NRF24L01P_NG_ARD_4000US;
|
||||
}
|
||||
return (nrf24l01p_ng_ard_t)(retr_delay / 250);
|
||||
if (retr_delay < 250) {
|
||||
return NRF24L01P_NG_ARD_250US;
|
||||
}
|
||||
return (nrf24l01p_ng_ard_t)((retr_delay / 250) - 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user