Skip to content

Commit aba2649

Browse files
committed
fix the fully charged delay 🤦
1 parent e36eac3 commit aba2649

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎LCM/Code/App/task.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,9 +1232,12 @@ void Charge_Detect_Task(void)
12321232
{
12331233
Charge_Flag = 0;
12341234
}
1235-
else if(data.inpVoltage >= FULL_VOLTAGE && Charge_Time > 2000)
1235+
else if(data.inpVoltage >= FULL_VOLTAGE)
12361236
{
1237-
Charge_Flag = 3;
1237+
if(Charge_Time > 2000)
1238+
{
1239+
Charge_Flag = 3;
1240+
}
12381241
}
12391242
else
12401243
{

0 commit comments

Comments
 (0)