|
@@ -3326,28 +3326,28 @@ int main(int argc, char *argv[])
|
|
|
// _chargingData[_index]->GroundFaultStatus = GFD_PASS;
|
|
|
|
|
|
//PRINTF_FUNC("To EV_%d GFD = %d \n", _index, _chargingData[_index]->GroundFaultStatus);
|
|
|
- if(_chargingData[_index]->GroundFaultStatus != GFD_WAIT)
|
|
|
- {
|
|
|
- unsigned char _result = _chargingData[_index]->GroundFaultStatus;
|
|
|
|
|
|
- if(_chargingData[_index]->Type == _Type_Chademo || _chargingData[_index]->Type == _Type_GB)
|
|
|
- {
|
|
|
- if (_result == GFD_WARNING)
|
|
|
- {
|
|
|
- _result = GFD_PASS;
|
|
|
- }
|
|
|
- SetIsolationStatus(_index, _result, _chargingData[_index]->Evboard_id);
|
|
|
- }
|
|
|
- else if(_chargingData[_index]->Type == _Type_CCS_2)
|
|
|
- {
|
|
|
- SetIsolationStatus(_index, _result, _chargingData[_index]->Evboard_id);
|
|
|
- }
|
|
|
- else
|
|
|
+ unsigned char _result = GFD_WAIT;
|
|
|
+ _result = _chargingData[_index]->GroundFaultStatus;
|
|
|
+
|
|
|
+ if(_chargingData[_index]->Type == _Type_Chademo ||
|
|
|
+ _chargingData[_index]->Type == _Type_GB)
|
|
|
+ {
|
|
|
+ if (_result == GFD_WARNING)
|
|
|
{
|
|
|
- //NULL
|
|
|
+ _result = GFD_PASS;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if(_result < GFD_WAIT &&
|
|
|
+ _result > GFD_WARNING)
|
|
|
+ {
|
|
|
+ PRINTF_FUNC("Unexpected GFD status : %d \n", _result);
|
|
|
+ _result = GFD_WAIT;
|
|
|
+ }
|
|
|
+
|
|
|
+ SetIsolationStatus(_index, _result, _chargingData[_index]->Evboard_id);
|
|
|
+
|
|
|
if(_chargingData[_index]->SystemStatus == S_CCS_PRECHARGE_ST0 &&
|
|
|
_chargingData[_index]->PrechargeStatus == PRECHARGE_READY)
|
|
|
{
|