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"