From c08acad0b42fd0bbc138cbd97b353c7650ea8ddc Mon Sep 17 00:00:00 2001 From: Ayush Sharma Date: Sun, 24 Sep 2023 00:18:18 +0530 Subject: [PATCH] - Wrap debug defs --- src/ElegantOTA.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ElegantOTA.h b/src/ElegantOTA.h index d03d550..d13962a 100644 --- a/src/ElegantOTA.h +++ b/src/ElegantOTA.h @@ -27,8 +27,13 @@ _____ _ _ ___ _____ _ #define ELEGANTOTA_USE_ASYNC_WEBSERVER 0 #endif -#define ELEGANTOTA_DEBUG 1 -#define UPDATE_DEBUG 1 +#ifndef ELEGANTOTA_DEBUG + #define ELEGANTOTA_DEBUG 0 +#endif + +#ifndef UPDATE_DEBUG + #define UPDATE_DEBUG 0 +#endif #if ELEGANTOTA_DEBUG #define ELEGANTOTA_DEBUG_MSG(x) Serial.printf("%s %s", "[ElegantOTA] ", x)