Browse Source

update metal short current test

chenkui 1 week ago
parent
commit
f71afdff82
1 changed files with 6 additions and 0 deletions
  1. 6 0
      CyberX8_RT/Modules/Metal/CurrentShortTestRoutine.cs

+ 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>