diff --git a/firmware/debug.c b/firmware/debug.c index ec33cfca68..21583cd4be 100644 --- a/firmware/debug.c +++ b/firmware/debug.c @@ -215,11 +215,13 @@ void debug_init(void) void debugf(char *fmt, ...) { +#ifdef DEBUG va_list ap; va_start( ap, fmt ); vsnprintf( debugmembuf, sizeof(debugmembuf), fmt, ap ); va_end( ap ); printf( "%s", debugmembuf ); +#endif } #endif