Commit 15706871 authored by 陈家乐's avatar 陈家乐

🐞 fix:代码评审问题:里程累计在初始化完成后在中断内调用执行

parent f0d93af9
...@@ -137,8 +137,12 @@ void Sys_Exact_50us_Tasks(void) ...@@ -137,8 +137,12 @@ void Sys_Exact_50us_Tasks(void)
if(task_100ms >= 2000) if(task_100ms >= 2000)
{ {
task_100ms = 0u; task_100ms = 0u;
if(Milleage_InitFlag == 0X5AA53AA3UL)
{
Data_Mileage_ISR(); Data_Mileage_ISR();
} }
}
task_1ms++; task_1ms++;
if ( task_1ms >=20U ) if ( task_1ms >=20U )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment