Skip to content
Snippets Groups Projects
Commit 2db6355e authored by lvquanhui's avatar lvquanhui
Browse files

改回自动同步功能,中途断电不影响保存

parent 600a5ed0
Branches 2-optimize_delay
No related merge requests found
Pipeline #4513 failed
......@@ -206,7 +206,7 @@ void StartMainTask(void const *argument)
}
}
}
if (storage_step == 2 && (idle_tick > 100 && cache_cnt > 0) && g_usb_cnt == 0)
if (storage_step == 2 && (idle_tick > 100 && cache_cnt > 0|| cache_cnt >= 512) && g_usb_cnt == 0)
{
idle_tick = 0;
cache_cnt = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment