Browse Source

更新 'EVSE/Projects/define.h'

1. union CpMsg 跟 union CsMsg 的bits 要設成陣列, 陣列大小為 CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY
8059 5 years ago
parent
commit
8fa862728a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      EVSE/Projects/define.h

+ 3 - 2
EVSE/Projects/define.h

@@ -2698,7 +2698,7 @@ struct OCPP16Data
 	unsigned char StopTransactionReq:1;	//bit 4,
 	unsigned char StopTransactionConf:1;	//bit 5,
 	unsigned char :2;	//bit 6,7 , reserved
-	}bits;
+	}bits[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY];
 	}CpMsg;
 	union
 	{
@@ -2748,7 +2748,7 @@ struct OCPP16Data
 	unsigned char GetCompositeScheduleReq :1;	//bit 4,
 	unsigned char GetCompositeScheduleConf :1;	//bit 5,
 	unsigned char :2;	//bit 6,7
-	}bits;
+	}bits[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY];
 	}CsMsg;
 	union
 	{
@@ -2809,6 +2809,7 @@ struct OCPP16Data
 };
 
 
+
 	
 #endif // DEFINE_H_