rambo 4 mesiacov pred
rodič
commit
c6b801415b
1 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  1. 4 4
      python/mcu/LineControl.py

+ 4 - 4
python/mcu/LineControl.py

@@ -18,7 +18,7 @@ class LineControl(BaseClass):
         self.serial_ins = None
         self.connect_state = False
         self.is_running = False
-        self.msg_type = "line_control"
+        self.msg_type = "blue_tooth"
         self.goods_art_no = None
         # 0 闲置;1进行中;2已完成;
         self.photo_take_state = 0
@@ -143,7 +143,7 @@ class LineControl(BaseClass):
             device_status=2,
         )
         self.goods_art_no = None
-        self.msg_type = "line_control"
+        self.msg_type = "blue_tooth"
         self.photo_take_state = 2
 
     async def analysis_received_data(self,):
@@ -197,7 +197,7 @@ class LineControl(BaseClass):
                 # 0 闲置;1进行中;2已完成;
                 _data = {"type": self.msg_type, "data": None}
                 self.sendSocketMessage(0, "处理单拍消息", data=_data, device_status=-1)
-                self.msg_type = "line_control"
+                self.msg_type = "blue_tooth"
             if button_value in [9]:
                 # 处理停止
                 self.msg_type = "stop_action"
@@ -206,7 +206,7 @@ class LineControl(BaseClass):
                 self.sendSocketMessage(
                     0, "停止执行组合动作", data=_data, device_status=-1
                 )
-                self.msg_type = "line_control"
+                self.msg_type = "blue_tooth"
             self.sendSocketMessage(code=0, msg="", data=message, device_status=2)
             return
         pass