瀏覽代碼

是否调试模式

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":
                 # 相机电机