|
@@ -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};
|