Browse Source

[Improve][Modularization][Module_OcppBackend]

2021.08.22 / Folus Wen

Actions:
1. RemoteStartTransaction rejected connectorId is 0.

Files:
1. As follow commit history

Image version: D0.00.XX.XXXX.XX
Image checksum: XXXXXXXX

Hardware PWB P/N : XXXXXXX
Hardware Version : XXXXXXX
FolusWen 3 years ago
parent
commit
c96ef4476d

+ 1 - 1
EVSE/Modularization/ocppfiles/MessageHandler.c

@@ -10348,7 +10348,7 @@ int handleRemoteStartRequest(char *uuid, char *payload)
 			}
 		}
 
-		if((connectorIdInt <= gunTotalNumber) && (connectorIdInt != -1))
+		if((connectorIdInt <= gunTotalNumber) && (connectorIdInt > 0))
 		{
 			memset(&ShmOCPP16Data->RemoteStartTransaction[connectorIdInt -1], 0x00, sizeof(struct StructRemoteStartTransaction));
 			// Required data

+ 1 - 1
EVSE/Modularization/ocppph/MessageHandler.c

@@ -10100,7 +10100,7 @@ int handleRemoteStartRequest(char *uuid, char *payload)
 			}
 		}
 
-		if((connectorIdInt <= gunTotalNumber) && (connectorIdInt != -1))
+		if((connectorIdInt <= gunTotalNumber) && (connectorIdInt > 0))
 		{
 			memset(&ShmOCPP16DataPH->RemoteStartTransaction[connectorIdInt -1], 0x00, sizeof(struct StructRemoteStartTransaction));
 			// Required data