From 9431f1ff97fe50df6c5d0937820b6696b493fe06 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sat, 1 Feb 2025 13:55:25 +0800 Subject: wip --- nRF24L01/radio.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'nRF24L01/radio.c') diff --git a/nRF24L01/radio.c b/nRF24L01/radio.c index 26d4c49..43355db 100644 --- a/nRF24L01/radio.c +++ b/nRF24L01/radio.c @@ -103,11 +103,6 @@ void radio_listen(void) { } -static inline void write_config_reg(uint8_t val) -{ - write_reg(NRF24L01_REG_CONFIG, (0x7F & val)); -} - void radio_init(const struct radio_cfg *cfg) { uint8_t conf; @@ -128,5 +123,5 @@ void radio_init(const struct radio_cfg *cfg) conf &= ~(1 << NRF24L01_PWR_UP); conf &= ~(1 << NRF24L01_PRIM_RX); - write_config_reg(conf); + write_reg(NRF24L01_REG_CONFIG, conf); } -- cgit v1.2.3