summaryrefslogtreecommitdiffstats
path: root/nrfm.c
diff options
context:
space:
mode:
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)))