From 1021867ae94276ef6b43b0362c2b0c8b26d4623e Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Tue, 31 Dec 2024 18:05:33 +0800 Subject: [PATCH] =?utf8?q?=E8=8E=B7=E5=8F=96=E6=8A=95=E7=A5=A8=E7=BB=93?= =?utf8?q?=E6=9E=9C=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/drivers/peripheral/utils/custom_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/sdk/drivers/peripheral/utils/custom_utils.c b/code/sdk/drivers/peripheral/utils/custom_utils.c index 38291bc40..95edda3e0 100644 --- a/code/sdk/drivers/peripheral/utils/custom_utils.c +++ b/code/sdk/drivers/peripheral/utils/custom_utils.c @@ -229,6 +229,7 @@ void uapi_poweroff_device(void) //关机保存 start_report_log(); + osDelay(50); //同步nand文件系统,重启mount速度快 reset_deal_with_fs(); @@ -1354,7 +1355,7 @@ errcode_t get_vote_status(char* str, size_t str_size) { str[0] = '\0'; for (i = 0; i < PM_ID_MAX; i++) { - if (pm_veto_ptr->veto_counts.sub_counts[i] == 1) { + if (pm_veto_ptr->veto_counts.sub_counts[i]) { // 拼接当前 pm ID 并添加换行符 snprintf(str + strlen(str), str_size - strlen(str), "%s%s\n", (flag ? " " : ""), get_pm_id_name(i)); flag = 1; -- 2.17.1