diff -r da7f80e04a54 -r 52a17be9c4d1 targets/plc_debug.c --- a/targets/plc_debug.c Tue Feb 26 01:17:53 2013 +0100 +++ b/targets/plc_debug.c Tue Feb 26 16:37:17 2013 +0900 @@ -312,7 +312,9 @@ #define LOG_INFO 2 #define LOG_DEBUG 3 +#ifndef LOG_BUFFER_SIZE #define LOG_BUFFER_SIZE (1<<14) /*16Ko*/ +#endif #define LOG_BUFFER_MASK (LOG_BUFFER_SIZE-1) static char LogBuff[LOG_LEVELS][LOG_BUFFER_SIZE]; void inline copy_to_log(uint8_t level, uint32_t buffpos, void* buf, uint32_t size){