Przeglądaj źródła

新增充电模式下,低SOC红灯不亮

CHENJIE-PC\QiXiang_CHENJIE 3 lat temu
rodzic
commit
5470d59179
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6 2
      src/UartTask.c

+ 6 - 2
src/UartTask.c

@@ -947,8 +947,12 @@ void battErrorStateDisplay()
 	{	
 	
 		errorLightTimer++;
-
-		if(battWarningState != 0)
+		if(battWorkState  == 0x02)  //充电模式下,如果只有“SOC低故障”,那么就不显示故障灯   zhengchao20210713 add
+		{
+			if((((battWarningState >> 10) & 0x01) == 0x01) &&  ((battWarningState & 0xFFFFFBFF) == 0x00))
+				return;
+		}
+		if(battWarningState != 0 )
 		{
 			if(errorLightTimer<(UINT8)(errorLEDFlashPeriod*errorDutyRatio)) 
 			{