diff --git a/src/Log.h b/src/Log.h index 409a8e476f..2884b7e25d 100644 --- a/src/Log.h +++ b/src/Log.h @@ -14,7 +14,9 @@ #include "types.h" #define SETUP_LOG() static LogPartition logPartition(__FILE__) -#define cLog(x) if (logPartition.doLog(x)) Log(x) + +#define tLog(c,x) if (!logPartition.doLog(x) || !(c)) do {} while(0); else Log(x) +#define cLog(x) if (!logPartition.doLog(x)) do {} while (0); else Log(x) enum LogSeverity {