소스 검색

是否调试模式

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