From 7f6203532ba7842e014ccc64503c19cf27585cf0 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sun, 8 Dec 2024 17:41:03 +0800 Subject: Fix typo in mode ready check. --- rf_test/radio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rf_test') 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)) ; } -- cgit v1.2.3