aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKing Kévin <kingkevin@cuvoodoo.info>2016-08-26 08:51:44 +0200
committerKing Kévin <kingkevin@cuvoodoo.info>2016-08-26 08:51:44 +0200
commitfb608a8e86c8e72670ef7368ed64c930278429e4 (patch)
treeb50751282781be8465ea80a432724098008f93b8
parent35ffab225e0e2a95d2b363599a84b697eb24f7a4 (diff)
fix intialisationHEADmaster
-rw-r--r--arduino_nano/lib/spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arduino_nano/lib/spi.c b/arduino_nano/lib/spi.c
index 81e8dbe..0640ddd 100644
--- a/arduino_nano/lib/spi.c
+++ b/arduino_nano/lib/spi.c
@@ -27,7 +27,7 @@
#include <spi.h> // SPI configuration
volatile uint8_t* spi_b = NULL; // the byte address to transmit/receive
-volatile size_t spi_i = NULL; // how many remaining bytes to transmit
+volatile size_t spi_i = 0; // how many remaining bytes to transmit
/* receive SPI byte and transmit next on previous transmit completion when transfer is interrupt based (non-blocking) */
ISR(SPI_STC_vect)