|
@@ -659,9 +659,7 @@ void ClearAbnormalStatus_Chademo(byte gun_index)
|
|
|
{
|
|
|
for (byte index = 0; index < ShmSysConfigAndInfo->SysConfig.TotalConnectorCount; index++)
|
|
|
{
|
|
|
- if (index == gun_index)
|
|
|
- continue;
|
|
|
- else
|
|
|
+ if (index != gun_index || ShmSysConfigAndInfo->SysConfig.TotalConnectorCount == 1)
|
|
|
{
|
|
|
PRINTF_FUNC("CHA clean error : index = %d, EvConnAlarmCode = %s, code = %s \n", index, _chargingData[index]->EvConnAlarmCode, code);
|
|
|
if (strncmp((char *)_chargingData[index]->EvConnAlarmCode, code, 6) != EQUAL)
|
|
@@ -1153,9 +1151,7 @@ void ClearAbnormalStatus_GB(byte gun_index)
|
|
|
{
|
|
|
for (byte index = 0; index < ShmSysConfigAndInfo->SysConfig.TotalConnectorCount; index++)
|
|
|
{
|
|
|
- if (index == gun_index)
|
|
|
- continue;
|
|
|
- else
|
|
|
+ if (index != gun_index || ShmSysConfigAndInfo->SysConfig.TotalConnectorCount == 1)
|
|
|
{
|
|
|
PRINTF_FUNC("GBT clean error : index = %d, EvConnAlarmCode = %s, code = %s \n", index, _chargingData[index]->EvConnAlarmCode, code);
|
|
|
if (strncmp((char *)_chargingData[index]->EvConnAlarmCode, code, 6) != EQUAL)
|
|
@@ -2186,9 +2182,7 @@ void ClearAbnormalStatus_CCS(byte gun_index)
|
|
|
{
|
|
|
for (byte index = 0; index < ShmSysConfigAndInfo->SysConfig.TotalConnectorCount; index++)
|
|
|
{
|
|
|
- if (index == gun_index)
|
|
|
- continue;
|
|
|
- else
|
|
|
+ if (index != gun_index || ShmSysConfigAndInfo->SysConfig.TotalConnectorCount == 1)
|
|
|
{
|
|
|
PRINTF_FUNC("CCS clean error : index = %d, EvConnAlarmCode = %s, code = %s \n", index, _chargingData[index]->EvConnAlarmCode, code);
|
|
|
if (strncmp((char *)_chargingData[index]->EvConnAlarmCode, code, 6) != EQUAL)
|