Include mcu.h.
authorMalte S. Stretz <mss@apache.org>
Tue, 13 Jan 2009 13:35:45 +0000 (13:35 +0000)
committerMalte S. Stretz <mss@apache.org>
Tue, 13 Jan 2009 13:35:45 +0000 (13:35 +0000)
src/buffer.c

index 6161cc9..020264c 100644 (file)
@@ -71,6 +71,7 @@ char gg_buffer_dc[3]   = {
 \r
 ///////////////////////////////\r
 \r
+#include "mcu.h"\r
 #include "sched.h"\r
 #include "tlc.h"\r
 \r
@@ -82,7 +83,7 @@ void buffer_init(void)
 {\r
   \r
   #define BUFFER_INIT_KEEP 0\r
-  #if BUFFER_INIT_KEEP == 0\r
+  #if BUFFER_INIT_KEEP == 1\r
   memset(gg_buffer_gs, 0x00, sizeof(gg_buffer_gs));\r
   #endif\r
   for (uint8_t i = 0; i < (TLC_N_CHANNELS / TLC_N_TLCS_PER_PAINTER - BUFFER_INIT_KEEP); i++)\r