summaryrefslogtreecommitdiffstats
path: root/nrfm.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-04-03 18:09:28 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-04-03 18:09:28 +0800
commit4c57018f1a45286dc796582a429a9c319174e356 (patch)
treef741faec3a8778da4f471ff7a622ecb799d6c85f /nrfm.c
parentad45d2e4b7b11b8727cf017c00b20c46d30bc930 (diff)
downloadavr-nrf24l01-driver-4c57018f1a45286dc796582a429a9c319174e356.tar.gz
code formatting.
Diffstat (limited to 'nrfm.c')
-rw-r--r--nrfm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nrfm.c b/nrfm.c
index f34eb83..38c5556 100644
--- a/nrfm.c
+++ b/nrfm.c
@@ -298,6 +298,7 @@ uint8_t radio_recv(char *buf, uint8_t n)
}
maxlen = pdlen < n ? pdlen : n;
+
SPI_PORT &= ~(1 << SPI_SS);
SPDR = 0b01100001;
while (!(SPSR & (1 << SPIF)))