diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-02-01 13:55:25 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-02-01 13:55:25 +0800 |
| commit | 9431f1ff97fe50df6c5d0937820b6696b493fe06 (patch) | |
| tree | 6c9c89257ad1ce114f2f9d1c9fce664c64479c7d | |
| parent | af242450180ab4928361a9633579cbd045365d80 (diff) | |
| download | smart-home-9431f1ff97fe50df6c5d0937820b6696b493fe06.tar.gz | |
wip
| -rw-r--r-- | nRF24L01/radio.c | 7 |
1 files changed, 1 insertions, 6 deletions
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); } |
