From: Jan "Yenya" Kasprzak Date: Thu, 13 Jun 2013 19:16:51 +0000 (+0200) Subject: logging.c: shorten the log buffer X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=commitdiff_plain;h=b0ded343a8795b5dd47bb434c65071055c7ad141;hp=1dcbf67055a7a51031a57db46d899ade790b2d30 logging.c: shorten the log buffer We are overflowing the stack, save the data segment space by shortening the log double buffer in RAM. --- diff --git a/firmware/logging.c b/firmware/logging.c index 31329f8..44e2c39 100644 --- a/firmware/logging.c +++ b/firmware/logging.c @@ -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];