rambo пре 7 месеци
родитељ
комит
a9a584e6f3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      python/mcu/DeviceControl.py

+ 1 - 1
python/mcu/DeviceControl.py

@@ -1273,7 +1273,7 @@ class DeviceControl(BaseClass, metaclass=SingletonType):
                 code=1, msg="mcu设备未初始化", device_status=4
             )
             return False
-        _is_debug = 1
+        _is_debug = 1 if settings.IS_DEBUG == "true" else 0
         match device_name:
             case "camera_high_motor":
                 # 相机电机