浏览代码

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 年之前
父节点
当前提交
4f642c86ca
共有 1 个文件被更改,包括 4 次插入0 次删除
  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");
 	/*