Skip to content

Commit

Permalink
provision/warp_esp32: Finish when last brick is removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrbt committed Apr 9, 2024
1 parent d8c9554 commit acfd91c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions provisioning/provision_warp_esp32_ethernet_brick.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,8 @@ def run_stage_1_tests_fn(serial_port, ethernet_ip, relay_pin, test_report):
while next_brick is not None and len(relay_to_rgb_led) > 0:
print(green(f"Removed {next_brick}"))
relay_to_rgb_led.pop(next_brick)
if len(relay_to_rgb_led) > 0:
break
next_brick = print_label(relay_to_ssid[next_brick], relay_to_passphrase[next_brick], test_reports[next_brick], lambda: brick_removed(relay_to_rgb_led))
else:
raise
Expand Down

0 comments on commit acfd91c

Please sign in to comment.