diff --git a/ev3sim/attach_bot.py b/ev3sim/attach_bot.py index a0b51e93..52791fda 100644 --- a/ev3sim/attach_bot.py +++ b/ev3sim/attach_bot.py @@ -302,6 +302,8 @@ def seek(self, i): def write(self, value): send_q.put((DEVICE_WRITE, (f"{self.k2} {self.k3} {self.k4}", value.decode()))) + while self.k4 == "mode" and current_data[self.k2][self.k3][self.k4] != value.decode(): + wait_for_tick() def flush(self): pass