瀏覽代碼

2023-01-03 / Wendell

Actions:
1. update AlarmCodeLength to 22

Files
1. As follow commit history
Wendell 2 年之前
父節點
當前提交
ed26ea2526
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      EVSE/Projects/define.h

+ 4 - 4
EVSE/Projects/define.h

@@ -200,7 +200,7 @@ Storage							0x0A200000-0x7FFFFFFF		1886 MB
 #define ShmSmartBoxKey          1016
 
 #define FaultCodeLength         5
-#define AlarmCodeLength         20
+#define AlarmCodeLength         22
 #define InfoCodeLength          41
 
 /**************************************************************************************/
@@ -1293,7 +1293,7 @@ char Currency[54][3]=
 according to XXX.Revxx
 ***************************************************************************************/
 /**************************************************************************************/
-char FaultStatusCode[40][6]=
+char FaultStatusCode[FaultCodeLength * 8][6]=
 {
 	"011001",	//CHAdeMO output fuse blew
 	"011002",	//CCS output fuse blew
@@ -1394,7 +1394,7 @@ struct FaultCodeData
 	}FaultEvents;
 };
 
-char AlarmStatusCode[176][6]=
+char AlarmStatusCode[AlarmCodeLength * 8][6]=
 {
 	"012200",	//System L1 input OVP
 	"012201",	//System L2 input OVP
@@ -1780,7 +1780,7 @@ struct AlarmCodeData
 	}AlarmEvents;
 };
 
-char InfoStatusCode[384][6]=
+char InfoStatusCode[InfoCodeLength * 8][6]=
 {
 	//Information comes from EVSE
 	"013600",	//Normal stop charging by user