Forráskód Böngészése

[Bug fix][Modularization][Module_OcppBackend]

2020.08.26 / Folus Wen

Actions:
1. EVSE/Modularization/ocppfiles/MessageHandler.c close file handle before function return.

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 4 éve
szülő
commit
5c3428bd45
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      EVSE/Modularization/ocppfiles/MessageHandler.c

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

@@ -16048,7 +16048,8 @@ void checkTempStopTransaction(int gun_index)
 			strncpy(connectorStr, str, 1);
 			if(atoi(connectorStr) != (gun_index+1))
 			{
-				DEBUG_INFO("atoi(connectorStr) = %d\n", atoi(connectorStr));
+				DEBUG_INFO("atoi(connectorStr) = %d, gun_index = %d\n", atoi(connectorStr), gun_index);
+				fclose(fptr1);
 				return ;
 			}