소스 검색

[Fixbug][EVSE-Emulator][main]

2022.11.30 / Folus Wen

Actions:
1. Fix target current only get half rating power bug in single connector model.

Files:
1. As follow commit history

Image version: E0.02.XX.XXXX.XX
Image checksum: XXXXXXXX

Hardware PWB P/N : XXXXXXX
Hardware Version : XXXXXXX
Folus Wen 2 년 전
부모
커밋
1da8ef2a14
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      EVSE/Projects/EVSE-Emulator/Apps/main.c

+ 5 - 4
EVSE/Projects/EVSE-Emulator/Apps/main.c

@@ -4376,10 +4376,11 @@ bool isTwoGunInChargingMode(void)
 
 	if (modelnameInfo.GetGunCount < 2)
 		result = FALSE;
-
-	if (getTargetChargingInfoData(0)->SystemStatus == SYS_MODE_CHARGING
-	        && getTargetChargingInfoData(1)->SystemStatus == SYS_MODE_CHARGING)
-		result = TRUE;
+	else
+	{
+		if (getTargetChargingInfoData(0)->SystemStatus == SYS_MODE_CHARGING && getTargetChargingInfoData(1)->SystemStatus == SYS_MODE_CHARGING)
+			result = TRUE;
+	}
 
 	return result;
 }