diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2024-12-08 17:41:03 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2024-12-08 17:41:03 +0800 |
| commit | 7f6203532ba7842e014ccc64503c19cf27585cf0 (patch) | |
| tree | ae6810697cbce5b077fb8117d906a3dd3c8ce601 /rf_test/radio.c | |
| parent | 8fc4c42c3848ef747579b7cae3b6aba880d3a66e (diff) | |
| download | smart-home-7f6203532ba7842e014ccc64503c19cf27585cf0.tar.gz | |
Fix typo in mode ready check.
Diffstat (limited to 'rf_test/radio.c')
| -rw-r--r-- | rf_test/radio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rf_test/radio.c b/rf_test/radio.c index cd75ec5..3e2b9ba 100644 --- a/rf_test/radio.c +++ b/rf_test/radio.c @@ -44,7 +44,7 @@ void radio_send(const char *data, uint8_t n) uint8_t i; write_reg(0x01, 0x04); - while ((read_reg(0x27) & 80)) + while ((read_reg(0x27) & 0x80)) ; SPI_PORT &= ~(1 << SPI_SS); @@ -63,7 +63,7 @@ void radio_send(const char *data, uint8_t n) ; write_reg(0x01, 0x04); - while ((read_reg(0x27) & 80)) + while ((read_reg(0x27) & 0x80)) ; } |
