Added Set Log Level Commands

This commit is contained in:
2025-10-23 09:34:44 +03:00
parent 470d7bfacc
commit d1835beff5
7 changed files with 199 additions and 9 deletions

View File

@@ -62,7 +62,7 @@
* 👨‍💻 AUTHOR: BellSystems bonamin
*/
#define FW_VERSION "1.0"
#define FW_VERSION "1.2"
/*
@@ -70,6 +70,7 @@
* 📅 VERSION HISTORY:
* ═══════════════════════════════════════════════════════════════════════════════
* v0.1 - Vesper Launch Beta
* v1.2 - Added Log Level Configuration via App/MQTT
* ═══════════════════════════════════════════════════════════════════════════════
*/
@@ -201,6 +202,11 @@ void setup()
// Initialize Configuration (loads factory identity from NVS + user settings from SD)
configManager.begin();
// Apply log level from config (loaded from SD)
uint8_t logLevel = configManager.getGeneralConfig().serialLogLevel;
Logging::setLevel((Logging::LogLevel)logLevel);
LOG_INFO("Log level set to %d from configuration", logLevel);
inputManager.begin();
inputManager.setFactoryResetLongPressCallback(handleFactoryReset);