Commit 615087bc authored by 时昊's avatar 时昊

feat:40629修改功率表计算

parent b1b4b28f
......@@ -314,13 +314,10 @@ void Gauge_Power_Display(void)
//-1格和-50%
SEG_SET_PowerDial(1u, 0x81u, 1u, 50u);
if(BattCurr.Symbol == 1)//-
if(BattCurr.Value > 50)
{
if(BattCurr.Value > 50)//负数情况下,数值越大,实际越小
{
//-1 -2格和-100%
SEG_SET_PowerDial(1u, 0x82u, 1u, 100u);
}
//-1 -2格和-100%
SEG_SET_PowerDial(1u, 0x82u, 1u, 100u);
}
}
}
......
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