summaryrefslogtreecommitdiffstats
path: root/rf_test/radio.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2024-12-10 19:48:49 +0800
committerSadeep Madurange <sadeep@asciimx.com>2024-12-10 19:48:49 +0800
commit6efe065293dad3bc62cea9c614e2e0843e82a139 (patch)
tree655541334327a29e7d7f4c4880e7757b820142cb /rf_test/radio.c
parente0021c1579ae329e8a78eda6979616fa7ceb456e (diff)
downloadsmart-home-6efe065293dad3bc62cea9c614e2e0843e82a139.tar.gz
Code format.
Diffstat (limited to 'rf_test/radio.c')
-rw-r--r--rf_test/radio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rf_test/radio.c b/rf_test/radio.c
index 9dc3528..5f9ed9a 100644
--- a/rf_test/radio.c
+++ b/rf_test/radio.c
@@ -23,7 +23,6 @@ static inline uint8_t read_reg(uint8_t reg)
while (!(SPSR & (1 << SPIF)))
;
SPI_PORT |= (1 << SPI_SS);
-
return SPDR;
}
@@ -82,7 +81,7 @@ uint8_t radio_recv(char *buf, uint8_t n)
SPI_PORT &= ~(1 << SPI_SS);
SPDR = 0x00 | 0x7F;
while (!(SPSR & (1 << SPIF)))
- ;
+ ;
while (read_len < n) {
SPDR = 0;
while (!(SPSR & (1 << SPIF)))