projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e17427a
)
获取投票结果接口修改
1586/2
1586/head
author
hcj
<1224667075@qq.com>
Tue, 31 Dec 2024 10:05:33 +0000
(18:05 +0800)
committer
hcj
<1224667075@qq.com>
Tue, 31 Dec 2024 10:05:33 +0000
(18:05 +0800)
code/sdk/drivers/peripheral/utils/custom_utils.c
patch
|
blob
|
history
diff --git
a/code/sdk/drivers/peripheral/utils/custom_utils.c
b/code/sdk/drivers/peripheral/utils/custom_utils.c
index
38291bc
..
95edda3
100644
(file)
--- 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;