From 01b178164da5becc2f922deebdca0ecebd7a59e8 Mon Sep 17 00:00:00 2001 From: David Lin Date: Thu, 2 Jul 2020 20:04:29 +0800 Subject: [PATCH] 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 --- devices/nrf24l01/nrf24l01.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/nrf24l01/nrf24l01.c b/devices/nrf24l01/nrf24l01.c index bc550c9b..e835eb5f 100644 --- a/devices/nrf24l01/nrf24l01.c +++ b/devices/nrf24l01/nrf24l01.c @@ -53,7 +53,7 @@ void nrf_enable_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) {