Pārlūkot izejas kodu

add charge time ignore xl

Signed-off-by: FuangCao <cavan.cao@foxmail.com>
FuangCao 5 gadi atpakaļ
vecāks
revīzija
c088a2f54d
3 mainītis faili ar 5 papildinājumiem un 5 dzēšanām
  1. 1 1
      Project/version.txt
  2. 3 3
      Source/shark_charge.c
  3. 1 1
      Source/sw_build_info.h

+ 1 - 1
Project/version.txt

@@ -1 +1 @@
-PS100XX_V11_11191849
+PS100XX_V11_11191852

+ 3 - 3
Source/shark_charge.c

@@ -62,10 +62,10 @@ void shark_charge_tick(void)
 		if (shark_charger_insert > SHARK_CHG_INSERT_MIN) {
 			if (shark_xl_check_with_qd() == shark_false) {
 				shark_charger_state = SHARK_CHG_INSERT;
+			}
 
-				if (shark_charger_enabled && shark_charge_times < SHARK_CHG_TIME_MAX) {
-					shark_charge_times++;
-				}
+			if (shark_charger_enabled && shark_charge_times < SHARK_CHG_TIME_MAX) {
+				shark_charge_times++;
 			}
 		} else {
 			shark_charger_insert++;

+ 1 - 1
Source/sw_build_info.h

@@ -1,3 +1,3 @@
 #pragma once
 
-#define CONFIG_VERSION "PS100XX_V11_11191849"
+#define CONFIG_VERSION "PS100XX_V11_11191852"