Browse Source

2020.08.11 / Folus Wen

Actions:
1. EVSE/Modularization/ocppfiles/MessageHandler.c checkCompositeSchedule() set duration to -1 after declare profile variable.

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 years ago
parent
commit
4f642c86ca
1 changed files with 4 additions and 0 deletions
  1. 4 0
      EVSE/Modularization/ocppfiles/MessageHandler.c

+ 4 - 0
EVSE/Modularization/ocppfiles/MessageHandler.c

@@ -585,6 +585,10 @@ void checkCompositeSchedule(uint8_t connectorId, uint32_t durationReq, struct St
 	defaultTxProfile.ChargingProfileId = -1;
 	txProfile.ChargingProfileId = -1;
 
+	maxProfile.ChargingSchedule.Duration = -1;
+	defaultTxProfile.ChargingSchedule.Duration = -1;
+	txProfile.ChargingSchedule.Duration = -1;
+
 	system("yes|rm /tmp/*.json");
 	system("cp /Storage/OCPP/*.json /tmp");
 	/*