Update nrf24l01.c

As nrf24l01 datasheet show, this should be 'set to 1', not  'clear to 0', so

nrf_clear_reg_bit -> nrf_set_reg_bit
This commit is contained in:
David Lin
2020-07-02 20:04:29 +08:00
committed by GitHub
parent 26afeca15d
commit 01b178164d

View File

@@ -53,7 +53,7 @@ void nrf_enable_max_rt_irq() {
} }
void nrf_disable_max_rt_irq() { void nrf_disable_max_rt_irq() {
nrf_clear_reg_bit(REG_CONFIG, MASK_MAX_RT); nrf_set_reg_bit(REG_CONFIG, MASK_MAX_RT);
} }
void nrf_set_rf_channel(uint8_t channel) { void nrf_set_rf_channel(uint8_t channel) {