浏览代码

2020.06.16 / Folus Wen

Actions:
1. EVSE/Modularization/ocppfiles/MessageHandler.c static array variable give minuma size.

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

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

@@ -83,17 +83,17 @@ static char CurrentChargingProfileScheduleStr[30]	= {0};
 //========================================
 static int GunStatusInterval 															= 10;
 static int statusModeChage[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY] 	= {FALSE};
-static int ChademoPreviousSystemStatus[CHAdeMO_QUANTITY];
-static int CcsPreviousSystemStatus[CCS_QUANTITY];
-static int GbPreviousSystemStatus[GB_QUANTITY];
-static int AcPreviousSystemStatus[AC_QUANTITY];
-static int ChademoPreviousConnectorPlugIn[CHAdeMO_QUANTITY];
-static int CcsPreviousConnectorPlugIn[CCS_QUANTITY];
-static int GbPreviousConnectorPlugIn[GB_QUANTITY];
-static int AcPreviousConnectorPlugIn[AC_QUANTITY];
-static int TransactionMessageAttemptsValue 												= 0;
-static int TransactionMessageRetryIntervalValue 										= 0;
-static int TempMeterValueInterval 														= 0;
+static int ChademoPreviousSystemStatus[(CHAdeMO_QUANTITY>0?CHAdeMO_QUANTITY:1)];
+static int CcsPreviousSystemStatus[(CCS_QUANTITY>0?CCS_QUANTITY:1)];
+static int GbPreviousSystemStatus[(GB_QUANTITY>0?GB_QUANTITY:1)];
+static int AcPreviousSystemStatus[(AC_QUANTITY>0?AC_QUANTITY:1)];
+static int ChademoPreviousConnectorPlugIn[(CHAdeMO_QUANTITY>0?CHAdeMO_QUANTITY:1)];
+static int CcsPreviousConnectorPlugIn[(CCS_QUANTITY>0?CCS_QUANTITY:1)];
+static int GbPreviousConnectorPlugIn[(GB_QUANTITY>0?GB_QUANTITY:1)];
+static int AcPreviousConnectorPlugIn[(AC_QUANTITY>0?AC_QUANTITY:1)];
+static int TransactionMessageAttemptsValue 		= 0;
+static int TransactionMessageRetryIntervalValue 	= 0;
+static int TempMeterValueInterval 			= 0;
 static struct OCPPAuthLocalElemet
 {
 	int listVersionInt;