From c6d0c7e37276c748dddaa38eee6f2636af90b7c4 Mon Sep 17 00:00:00 2001 From: Jikstra <34889164+Jikstra@users.noreply.github.com> Date: Sun, 21 Aug 2022 05:44:57 +0200 Subject: [PATCH] Fix ArduinoLog not compiling with #define DISABLE_LOGGING --- ArduinoLog.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;