Эх сурвалжийг харах

[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 жил өмнө
parent
commit
1da8ef2a14

+ 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;
 }