]> www.fi.muni.cz Git - bike-lights.git/commitdiff
logging.c: shorten the log buffer
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 13 Jun 2013 19:16:51 +0000 (21:16 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 13 Jun 2013 19:16:51 +0000 (21:16 +0200)
We are overflowing the stack, save the data segment space by
shortening the log double buffer in RAM.

firmware/logging.c

index 31329f889ba6f860ad44e954480f959cf73c7a23..44e2c39de2ea09ca31ce3722b7f16aaaf4a3ba95 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "lights.h"
 
-#define LOG_BUFFER 128
+#define LOG_BUFFER 64
 static unsigned char log_buffer_ee[LOG_BUFFER] EEMEM;
 static unsigned char log_buffer_count;
 static unsigned char log_buffer[LOG_BUFFER];