diff --git a/ArduinoLog.h b/ArduinoLog.h index 33e7564..912b9c5 100644 --- a/ArduinoLog.h +++ b/ArduinoLog.h @@ -328,7 +328,9 @@ class Logging void print(const Printable& obj, va_list args) { - _logOutput->print(obj); + #ifndef DISABLE_LOGGING + _logOutput->print(obj); + #endif } void printFormat(const char format, va_list *args); @@ -382,4 +384,4 @@ class Logging #endif }; -extern Logging Log; \ No newline at end of file +extern Logging Log;