diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2024-12-05 17:15:12 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2024-12-05 17:15:12 +0800 |
| commit | f4c40d10ca4df9bd5abbba628abc26933ff41e59 (patch) | |
| tree | 3b86d41d9d55dc706aedb4455fec6d4a88dbe7d3 /rf_test/radio.c | |
| parent | 19a3fc567af76f8be10eaad982a5344a3d3a6695 (diff) | |
| download | smart-home-f4c40d10ca4df9bd5abbba628abc26933ff41e59.tar.gz | |
Add delay.
Diffstat (limited to 'rf_test/radio.c')
| -rw-r--r-- | rf_test/radio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rf_test/radio.c b/rf_test/radio.c index eb031db..4926280 100644 --- a/rf_test/radio.c +++ b/rf_test/radio.c @@ -63,6 +63,9 @@ void radio_send(const char *data, uint8_t n) while ((read_reg(0x27) >> 7) != 1) ; + // todo: do a more reliable check + _delay_ms(5); + // ListenOn write_reg(0x01, (read_reg(0x01) | 0x40)); } |
