From 267ac69a1a4ea033973fe3b8df92ff6974a7ccbb Mon Sep 17 00:00:00 2001 From: Zhengyu Peng Date: Wed, 23 Feb 2022 13:01:11 -0500 Subject: [PATCH] Update hexapod.py --- software/raspberry pi/hexapod.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/software/raspberry pi/hexapod.py b/software/raspberry pi/hexapod.py index ca6b936..3ce4ef6 100644 --- a/software/raspberry pi/hexapod.py +++ b/software/raspberry pi/hexapod.py @@ -291,15 +291,15 @@ class Hexapod(Thread): def run(self): while True: - if self.current_motion is None: - try: - cmd_string = self.cmd_queue.get(block=False) - print(cmd_string) - except Empty: - time.sleep(self.interval) - pass - else: - self.cmd_handler(cmd_string) + # if self.current_motion is None: + try: + cmd_string = self.cmd_queue.get(block=False) + print(cmd_string) + except Empty: + time.sleep(self.interval) + pass + else: + self.cmd_handler(cmd_string) if self.current_motion['type'] == 'motion': self.motion(self.current_motion['coord'])