From 2490ba75ababd519f6b9a4ce0c7f6cc4843b588c Mon Sep 17 00:00:00 2001 From: Florian Date: Mon, 12 Dec 2022 15:41:48 -0600 Subject: [PATCH] Add the possibility to set LOG_LEVEL_LCD and LOG_TO_LCD for M5 boards from PIO (#1358) --- main/config_M5.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main/config_M5.h b/main/config_M5.h index 95deea9..47f7e40 100644 --- a/main/config_M5.h +++ b/main/config_M5.h @@ -60,8 +60,12 @@ extern void loopM5(); # define SLEEP_BUTTON 33 #endif /*-------------------DEFINE LOG LEVEL----------------------*/ -#define LOG_LEVEL_LCD LOG_LEVEL_WARNING // if we go down below warning the size of the text to display can make the M5 restarting -#define LOG_TO_LCD true //set to false if you want to use serial monitor for the log per default instead of the M5 screen +#ifndef LOG_LEVEL_LCD +# define LOG_LEVEL_LCD LOG_LEVEL_WARNING // Default to only display Warning level messages, if we go down below warning the size of the text to display can make the M5 restarting +#endif +#ifndef LOG_TO_LCD +# define LOG_TO_LCD true // Default to display log messages on display +#endif /*-------------------DEFINE MQTT TOPIC FOR CONFIG----------------------*/ #define subjectMQTTtoM5set "/commands/MQTTtoM5/config"