Forráskód Böngészése

2020.05.27 / TC Hsu

Actions: Modify GFD state log, record the status and the insulation resistance value to system log when warning or fault.

Image version    : N/A
Image checksum   : N/A

Hardware PWB P/N : N/A
Hardware Version : N/A

Files:

	modified:   EVSE/Projects/DM30/Apps/Module_InternalComm.c
TC_Hsu 4 éve
szülő
commit
b13e9802e5
1 módosított fájl, 6 hozzáadás és 8 törlés
  1. 6 8
      EVSE/Projects/DM30/Apps/Module_InternalComm.c

+ 6 - 8
EVSE/Projects/DM30/Apps/Module_InternalComm.c

@@ -645,11 +645,10 @@ void GetGfdAdc()
                     PRINTF_FUNC("GFD Fail. index = %d, Step = %d, R = %d, Vol = %d \n",
                             i, gfd_adc.rb_step_1, gfd_adc.Resister_conn1, gfd_adc.voltage_conn1);
                 }
-                else if (_chargingData[i]->GroundFaultStatus == GFD_PASS ||
-                         _chargingData[i]->GroundFaultStatus == GFD_WARNING)
+                else if (_chargingData[i]->GroundFaultStatus == GFD_WARNING)
                 {
-//                  PRINTF_FUNC("GFD Result. index = %d, Result = %d, R = %d, Vol = %d \n",
-//                      i, _chargingData[i]->GroundFaultStatus, gfd_adc.Resister_conn1, gfd_adc.voltage_conn1);
+                  PRINTF_FUNC("GFD Warning. index = %d, R = %d, Vol = %d \n",
+                      i, gfd_adc.Resister_conn1, gfd_adc.voltage_conn1);
                 }
             }
             else if (i == 1)
@@ -660,11 +659,10 @@ void GetGfdAdc()
                     PRINTF_FUNC("GFD Fail. index = %d, Step = %d, R = %d, Vol = %d \n",
                             i, gfd_adc.rb_step_2, gfd_adc.Resister_conn2, gfd_adc.voltage_conn2);
                 }
-                else if (_chargingData[i]->GroundFaultStatus == GFD_PASS ||
-                         _chargingData[i]->GroundFaultStatus == GFD_WARNING)
+                else if (_chargingData[i]->GroundFaultStatus == GFD_WARNING)
                 {
-//                  PRINTF_FUNC("GFD Result. index = %d, Result = %d, R = %d, Vol = %d \n",
-//                      i, _chargingData[i]->GroundFaultStatus, gfd_adc.Resister_conn2, gfd_adc.voltage_conn2);
+                  PRINTF_FUNC("GFD Warning. index = %d, R = %d, Vol = %d \n",
+                      i, gfd_adc.Resister_conn2, gfd_adc.voltage_conn2);
                 }
             }
         }