|
|
@@ -19,7 +19,8 @@ class McuDeviationSet:
|
|
|
# self.set_enable_by_mcu()
|
|
|
# self.show()
|
|
|
self.last_value = defaultdict(float)
|
|
|
- self.mcu_debug = McuDebug(mcu, is_debug=True, is_deviation=False)
|
|
|
+ is_debug = True if settings.IS_DEBUG == "true" else False
|
|
|
+ self.mcu_debug = McuDebug(mcu, is_debug=is_debug, is_deviation=False)
|
|
|
loop = asyncio.get_event_loop()
|
|
|
loop.create_task(self.get_mcu_deviation(), name="get_mcu_deviation")
|
|
|
# # 运动到设定位
|