浏览代码

2020.06.12 / Folus Wen

Actions:
1. EVSE/Modularization/ocppfiles/MessageHandler.c checkCompositeSchedule() compositeProfile->ChargingProfileId default is 0 and only set to 1 if there is any period.

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 年之前
父节点
当前提交
813550ee00
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      EVSE/Modularization/ocppfiles/MessageHandler.c

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

@@ -1022,7 +1022,7 @@ void checkCompositeSchedule(uint8_t connectorId, uint32_t durationReq, struct St
 		compositeProfile->ChargingSchedule.ChargingSchedulePeriod[idxPeriod].Limit = -1;
 		compositeProfile->ChargingSchedule.ChargingSchedulePeriod[idxPeriod].NumberPhases = 3;
 	}
-	compositeProfile->ChargingProfileId = 1;
+	compositeProfile->ChargingProfileId = 0;
 	compositeProfile->StackLevel = 99 ;
 	sprintf((char*)compositeProfile->ChargingProfileKind ,"Absolute");
 
@@ -2378,6 +2378,7 @@ void checkCompositeSchedule(uint8_t connectorId, uint32_t durationReq, struct St
 	{
 		if(compositeProfile->ChargingSchedule.ChargingSchedulePeriod[idxPeriod].StartPeriod >= 0)
 		{
+			compositeProfile->ChargingProfileId = 1;
 			DEBUG_INFO("Period-%02d startPeriod: %d\n", idxPeriod, compositeProfile->ChargingSchedule.ChargingSchedulePeriod[idxPeriod].StartPeriod);
 			DEBUG_INFO("Period-%02d limit: %f\n", idxPeriod, compositeProfile->ChargingSchedule.ChargingSchedulePeriod[idxPeriod].Limit);
 			DEBUG_INFO("Period-%02d NumberPhases: %d\n", idxPeriod, compositeProfile->ChargingSchedule.ChargingSchedulePeriod[idxPeriod].NumberPhases);