Skip to content

Commit 684a3c2

Browse files
committed
random_maze.py: keep the 'disconnected' error on screen
1 parent 10cd5da commit 684a3c2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/random_maze.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ def build_maze():
380380

381381
# Handle the QwSTPad being disconnected unexpectedly
382382
except OSError:
383-
show_message("QwSTPad: Disconnected!")
383+
while True:
384+
show_message("QwSTPad: Disconnected!")
384385

385386
# Turn off the LEDs of the connected QwSTPad
386387
finally:

0 commit comments

Comments
 (0)