Skip to content

Commit e36eac3

Browse files
committed
add a delay to prevent random flashes of the fully charged status bar
1 parent 65281be commit e36eac3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

LCM/Code/App/task.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,12 +1232,14 @@ void Charge_Detect_Task(void)
12321232
{
12331233
Charge_Flag = 0;
12341234
}
1235-
else if(data.inpVoltage >= FULL_VOLTAGE)
1235+
else if(data.inpVoltage >= FULL_VOLTAGE && Charge_Time > 2000)
12361236
{
12371237
Charge_Flag = 3;
12381238
}
1239-
else {
1239+
else
1240+
{
12401241
Charge_Flag = 2;
1242+
Charge_Time = 0;
12411243
}
12421244
}
12431245
#endif

0 commit comments

Comments
 (0)