aboutsummaryrefslogtreecommitdiffstats
path: root/src/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash.c')
-rw-r--r--src/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash.c b/src/flash.c
index 3027ec0..6b3ee00 100644
--- a/src/flash.c
+++ b/src/flash.c
@@ -35,7 +35,7 @@ void flash_init(void)
SPI2->CR2 |= SPI_CR2_FRXTH;
SPI2->CR1 |= SPI_CR1_SPE;
- char buf[3];
+ char buf[4];
buf[0] = READ;
buf[1] = 0;
buf[2] = 0;