summaryrefslogtreecommitdiffstats
path: root/rf_test
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-01-19 15:43:37 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-01-19 15:43:37 +0800
commit0cfa2b519dc975ad580467c77b189ff98b7cf97b (patch)
tree61a4482e2cbc2d8c14682a08ea9076214faaa3bf /rf_test
parent8d98933d0c4e023b61c1131b221ac1ee41a4f9ab (diff)
downloadsmart-home-0cfa2b519dc975ad580467c77b189ff98b7cf97b.tar.gz
listen().
Diffstat (limited to 'rf_test')
-rw-r--r--rf_test/radio.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/rf_test/radio.c b/rf_test/radio.c
index 8c4f6b1..cebad0f 100644
--- a/rf_test/radio.c
+++ b/rf_test/radio.c
@@ -172,11 +172,7 @@ uint8_t radio_recv(char *buf, uint8_t n)
void radio_listen(void)
{
- write_reg(0x01, (read_reg(0x01) & 0xE3) | 0x10);
- while (!(read_reg(0x27) & 0x80))
- ;
-
- // todo: go to low power mode
+ set_mode(RF69_OPMODE_RX);
}
void radio_init(const struct radio_cfg *cfg)