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

feat:40629修改功率表计算

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