Commit 38b467fd authored by 李冠华's avatar 李冠华

🐞 fix:修改故障码显示错误的问题

parent 4bfc0f75
......@@ -90,7 +90,14 @@ void Fault_Code_Display_Queue(uint8_t TaskTime)
{
Code.FaultCodeDis = Code.FaultCodeArr[DisplayIndex];
Code.DisTimeCount = 0U;
if (DisplayIndex < (MAX_CODE_NUM - 1U))
{
DisplayIndex ++;
}
else
{
DisplayIndex = 0U;
}
break;
}
}
......
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