From 1e66912f1ad8d244117f781d53df01ac9ed47c7d Mon Sep 17 00:00:00 2001 From: liyang Date: Tue, 24 Mar 2026 16:32:51 +0800 Subject: [PATCH] Fix the issue where the default configuration parameters for the log do not take effect --- src/main/common/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/common/log.c b/src/main/common/log.c index 050422561d7..c2cc30a3a48 100644 --- a/src/main/common/log.c +++ b/src/main/common/log.c @@ -54,7 +54,7 @@ static serialPort_t * logPort = NULL; static mspPort_t * mspLogPort = NULL; -PG_REGISTER(logConfig_t, logConfig, PG_LOG_CONFIG, 0); +PG_REGISTER_WITH_RESET_TEMPLATE(logConfig_t, logConfig, PG_LOG_CONFIG, 0); PG_RESET_TEMPLATE(logConfig_t, logConfig, .level = SETTING_LOG_LEVEL_DEFAULT,