瀏覽代碼

[Bug fix][Modularization][Module_OcppBackned]

2020.10.16 / Folus Wen

Actions:
1. EVSE/Modularization/ocppfiles/MessageHandler.c array variable declare constant fix for 360KW model.

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 年之前
父節點
當前提交
f72db21705
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      EVSE/Modularization/ocppfiles/MessageHandler.c

+ 6 - 6
EVSE/Modularization/ocppfiles/MessageHandler.c

@@ -80,7 +80,7 @@ static char CurrentChargingProfileScheduleStr[30]	= {0};
 // OCPP status/previous related variables
 //========================================
 static int GunStatusInterval 																= 10;
-static uint8_t statusModeChage[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY] 	= {FALSE};
+static uint8_t statusModeChage[CONNECTOR_QUANTITY] 	= {FALSE};
 static uint8_t ChademoPreviousSystemStatus[(CHAdeMO_QUANTITY>0?CHAdeMO_QUANTITY:1)];
 static uint8_t CcsPreviousSystemStatus[(CCS_QUANTITY>0?CCS_QUANTITY:1)];
 static uint8_t GbPreviousSystemStatus[(GB_QUANTITY>0?GB_QUANTITY:1)];
@@ -129,17 +129,17 @@ struct StructOCPPMeterValue
 struct ClientTime
 {
 	unsigned int Heartbeat;
-	unsigned int StatusNotification[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
+	unsigned int StatusNotification[CONNECTOR_QUANTITY];
 	unsigned int StartTransaction;
 	unsigned int StopTransaction;
-	unsigned int MeterValues[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
+	unsigned int MeterValues[CONNECTOR_QUANTITY];
 
 }clientTime;
 
 typedef union
 {
 	//Operations Initiated by Central System
-	unsigned char CsMsgValue[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
+	unsigned char CsMsgValue[CONNECTOR_QUANTITY];
 	struct
 	{
 		//CsMsgValue[0]
@@ -2273,8 +2273,8 @@ int isOFFline(void)
 
 void CheckSystemValue(void)
 {
-	uint8_t reqSampleMeter[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY]={0};
-	uint8_t reqClockAlignMeter[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY]={0};
+	uint8_t reqSampleMeter[CONNECTOR_QUANTITY]={0};
+	uint8_t reqClockAlignMeter[CONNECTOR_QUANTITY]={0};
 
 	char filenmae[100]={0};
 	char str[100]={0};