Przeglądaj źródła

2021-06-01 / Eason Yang
Action :
1. Added : If the charger received a reset request,the system should change to booting mode.

File :
1. main.c
Action 1

Version :V0.52.XX.XXXX.NX

8009 3 lat temu
rodzic
commit
e10692345f
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      EVSE/Projects/Noodoe/Apps/main.c

+ 4 - 1
EVSE/Projects/Noodoe/Apps/main.c

@@ -2466,7 +2466,10 @@ int main(void)
 				ShmOCPP16Data->MsMsg.bits.ResetReq = OFF;
 				sprintf((char*)ShmOCPP16Data->Reset.ResponseStatus, "Accepted");
 				ShmOCPP16Data->MsMsg.bits.ResetConf = ON;
-
+				
+				DEBUG_INFO("%s reset request by OCPP.\n", ShmOCPP16Data->Reset.Type);
+				for(int gun_index = 0;gun_index<AC_QUANTITY;gun_index++)
+					setChargerMode(gun_index, SYS_MODE_BOOTING);
 				if(strcmp((char*)ShmOCPP16Data->Reset.Type, "Hard") == 0)
 				{
 					system("sync");