diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2024-12-08 17:34:29 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2024-12-08 17:34:29 +0800 |
| commit | 64f42e25a5f5d5929a0eb2ceba2b5ef8f6e2ee27 (patch) | |
| tree | 8383411f5bf31eaaa78486449c7ea9f38b626662 | |
| parent | 92ba8bbb42cca4eca7a1a7a2d27701204c2e8a56 (diff) | |
| download | smart-home-64f42e25a5f5d5929a0eb2ceba2b5ef8f6e2ee27.tar.gz | |
Fix tx start condition.
| -rw-r--r-- | rf_test/radio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/rf_test/radio.c b/rf_test/radio.c index fe3ce08..b525310 100644 --- a/rf_test/radio.c +++ b/rf_test/radio.c @@ -63,8 +63,6 @@ void radio_send(const char *data, uint8_t n) while (!(read_reg(0x28) & 0x08)) ; - serial_write_line("sending data"); - write_reg(0x01, 0x04); while ((read_reg(0x27) & 80)) ; @@ -126,7 +124,7 @@ void radio_init(const struct radio_cfg *cfg) write_reg(0x39, cfg->nodeid); // fifo config - write_reg(0x0F, 0x8F); + write_reg(0x3C, 0x8F); // DAGC config write_reg(0x6F, 0x30); |
