ソースを参照

update metal short current test

chenkui 1 週間 前
コミット
f71afdff82
共有1 個のファイルを変更した6 個の追加0 個の削除を含む
  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>