Commit f016ba4e authored by 时昊's avatar 时昊

修改能量回收

parent 77d4ef05
......@@ -257,14 +257,12 @@ void Gauge_Power_Display(void)
}
else
{
//-1格和-50%
SEG_SET_PowerDial(1u, 0x81u, 1u, 50u);
if(BattCurr.Symbol == 1)
{
if((BattCurr.Value <= 100)&&(BattCurr.Value > 0))
{
//-1格和-50%
SEG_SET_PowerDial(1u, 0x81u, 1u, 50u);
}
else if(BattCurr.Value > 100)
if(BattCurr.Value > 100)
{
//-1 -2格和-100%
SEG_SET_PowerDial(1u, 0x82u, 1u, 100u);
......@@ -272,7 +270,7 @@ void Gauge_Power_Display(void)
}
else
{
if(BattCurr.Value >= 0)
if(BattCurr.Value > 0)
{
//0格和0%
SEG_SET_PowerDial(1u, 0u, 0u, 0u);
......
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