Skip to content

Commit 1e66912

Browse files
author
liyang
committed
Fix the issue where the default configuration parameters for the log do not take effect
1 parent 5ee171f commit 1e66912

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/common/log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
static serialPort_t * logPort = NULL;
5555
static mspPort_t * mspLogPort = NULL;
5656

57-
PG_REGISTER(logConfig_t, logConfig, PG_LOG_CONFIG, 0);
57+
PG_REGISTER_WITH_RESET_TEMPLATE(logConfig_t, logConfig, PG_LOG_CONFIG, 0);
5858

5959
PG_RESET_TEMPLATE(logConfig_t, logConfig,
6060
.level = SETTING_LOG_LEVEL_DEFAULT,

0 commit comments

Comments
 (0)