Commit 5c280a97 authored by 时昊's avatar 时昊

feat:41048修改负功率计算,判断无效值时显示--

parent c3df8338
......@@ -308,6 +308,8 @@ void Gauge_Power_Display(void)
SEG_SET_PowerDial(1u, 0u, 0u, 0u);
}
else//PTModeInd = 1,且有效时
{
if(BattCurr.Valid == 1)
{
if(BattCurr.Value == 0)
{
......@@ -325,6 +327,11 @@ void Gauge_Power_Display(void)
}
}
}
else
{
SEG_SET_PowerDial(1u, 0u, 0u, 255u);
}
}
}
}
else
......
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