From a7ffa91a4036826d6217288c79bba15af3b0d5b2 Mon Sep 17 00:00:00 2001 From: mwesterm Date: Tue, 15 Mar 2022 10:49:12 +0100 Subject: [PATCH] Update ArduinoLog.h Fix compile-error if #define DISABLE_LOGGING: Add #ifndef DISABLE_LOGGING around _logOutput statement --- ArduinoLog.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ArduinoLog.h b/ArduinoLog.h index 33e7564..739aaba 100644 --- a/ArduinoLog.h +++ b/ArduinoLog.h @@ -328,7 +328,9 @@ class Logging void print(const Printable& obj, va_list args) { +#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;