diff --git a/src/log/hasp_debug.cpp b/src/log/hasp_debug.cpp index 5cc88bb6..4fb3c8b9 100644 --- a/src/log/hasp_debug.cpp +++ b/src/log/hasp_debug.cpp @@ -24,7 +24,9 @@ #include #elif defined(ARDUINO_ARCH_ESP32) #include +#if HASP_USE_SYSLOG > 0 #include +#endif #elif defined(STM32F4xx) || defined(STM32F7xx) #include #endif @@ -44,7 +46,6 @@ #endif #if HASP_USE_SYSLOG > 0 -#include #ifndef SYSLOG_SERVER #define SYSLOG_SERVER ""