From a0ae7ceed778b29856a839a9cd3608b67eeb5089 Mon Sep 17 00:00:00 2001 From: Argafal Date: Wed, 8 Mar 2023 20:59:42 +0100 Subject: [PATCH] Lolin C3 mini: disable serial output as a default --- environments.ini | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/environments.ini b/environments.ini index e591b87477..33644fb26a 100644 --- a/environments.ini +++ b/environments.ini @@ -1564,17 +1564,20 @@ build_flags = '-DTRIGGER_GPIO=9' '-DNO_INT_TEMP_READING=true' ; No internal temperature on ESP32 C3 or S3 '-DGateway_Name="OpenMQTTGateway_ESP32C3_BLE"' +; Serial output currently causes a delay on each message, if no serial listener is connected. +; Therefore we disable serial output. Use the _with_serial environment if you +; need serial output for debugging purposes. + '-DLOG_LEVEL=LOG_LEVEL_SILENT' ; disable serial logging. + '-DWM_DEBUG_LEVEL=DEBUG_ERROR' ; disable serial logging. custom_description = BLE gateway on ESP32C3 custom_hardware = Wemos Lolin C3 mini v2.3.0 -; Serial output currently causes a delay on each message, if no serial listener is connected. -; Use the _no_serial environment unless you are actively debugging. -[env:lolin_c3_mini_no_serial] +[env:lolin_c3_mini_with_serial] extends = env:lolin_c3_mini build_flags = ${env:lolin_c3_mini.build_flags} - '-DLOG_LEVEL=LOG_LEVEL_SILENT' ; disable serial logging. - '-DWM_DEBUG_LEVEL=0' + '-DLOG_LEVEL=LOG_LEVEL_NOTICE' ;default + '-DWM_DEBUG_LEVEL=DEBUG_NOTIFY' ;default [env:thingpulse-espgateway] platform = ${com.esp32_platform}