From 675c6ce908e4d73a6949e201ef3c1570a5770a9b Mon Sep 17 00:00:00 2001 From: stefan123t Date: Sat, 10 Sep 2022 23:08:44 +0200 Subject: [PATCH] raise debug level in debug env --- tools/esp8266/include/dbg.h | 2 ++ tools/esp8266/platformio.ini | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/esp8266/include/dbg.h b/tools/esp8266/include/dbg.h index 9573e42f..17b334c9 100644 --- a/tools/esp8266/include/dbg.h +++ b/tools/esp8266/include/dbg.h @@ -22,7 +22,9 @@ //----------------------------------------------------------------------------- // globally used level +#ifndef DEBUG_LEVEL #define DEBUG_LEVEL DBG_INFO +#endif #ifdef ARDUINO #include "Arduino.h" diff --git a/tools/esp8266/platformio.ini b/tools/esp8266/platformio.ini index 657cab44..f18c0877 100644 --- a/tools/esp8266/platformio.ini +++ b/tools/esp8266/platformio.ini @@ -58,7 +58,7 @@ monitor_filters = platform = espressif8266 board = esp12e board_build.f_cpu = 80000000L -build_flags = -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_OOM -DDEBUG_ESP_PORT=Serial +build_flags = -DDEBUG_LEVEL=DBG_DEBUG -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_OOM -DDEBUG_ESP_PORT=Serial build_type = debug monitor_filters = ;default ; Remove typical terminal control codes from input @@ -77,7 +77,7 @@ monitor_filters = [env:esp32-wroom32-debug] platform = espressif32 board = lolin_d32 -build_flags = -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_OOM -DDEBUG_ESP_PORT=Serial +build_flags = -DDEBUG_LEVEL=DBG_DEBUG -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_OOM -DDEBUG_ESP_PORT=Serial build_type = debug monitor_filters = ;default ; Remove typical terminal control codes from input