Explorar el Código

update over discharge

Signed-off-by: FuangCao <cavan.cao@foxmail.com>
FuangCao hace 5 años
padre
commit
fe25a0aa5a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Source/app_rs485_1.c

+ 1 - 1
Source/app_rs485_1.c

@@ -633,7 +633,7 @@ shark_bool shark_battery_ping(u8 times)
 
 shark_bool shark_battery_over_discharge(void)
 {
-	if (shark_charger_state != SHARK_CHG_REMOVE) {
+	if (shark_charger_state == SHARK_CHG_INSERT) {
 		return shark_false;
 	}