Procházet zdrojové kódy

update metal short current test

chenkui před 1 týdnem
rodič
revize
f71afdff82

+ 6 - 0
CyberX8_RT/Modules/Metal/CurrentShortTestRoutine.cs

@@ -94,6 +94,12 @@ namespace CyberX8_RT.Modules.Metal
         /// <returns></returns>
         private bool CheckCurrent(double current)
         {
+            bool isSimulator = SC.GetValue<bool>("System.IsSimulatorMode");
+            if (isSimulator)
+            {
+                return true;
+            }
+            LOG.WriteLog(eEvent.INFO_METAL, Module, $"current is {current}");
             return current < _shortTestThreshold;
         }
         /// <summary>