You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
matchtool_choices.index(awaitquestionary.select("What would you like to do?", tool_choices).ask_async()):
472
471
case0:
473
-
connection_type=awaitquestionary.select("How do you want to connect to the hub?", ["bluetooth", "usb"]).ask_async()
474
-
file_path=os.path.expanduser(awaitquestionary.path("What file would you like to run?", complete_style=CompleteStyle.COLUMN, file_filter=lambdaname: name.endswith(".py")).ask_async())
475
-
hub_name=awaitquestionary.text("What is the name of your pybricks hub? (enter for any)").ask_async() ifconnection_type=="bluetooth"elseNone
476
-
other_options_list=["Start the program immediately after downloading it.", "Wait for the program to complete before disconnecting. Only applies when starting program right away.", "Add a menu option to resend the code with bluetooth instead of disconnecting from the robot after the program ends."]
connection_type=awaitquestionary.select("How do you want to connect to the hub?", ["bluetooth", "usb"]).ask_async()
473
+
file_path=os.path.expanduser(awaitquestionary.path("What file would you like to run?", complete_style=CompleteStyle.COLUMN, file_filter=lambdaname: name.endswith(".py")).ask_async())
474
+
hub_name=awaitquestionary.text("What is the name of your pybricks hub? (enter for any)").ask_async() ifconnection_type=="bluetooth"elseNone
475
+
other_options_list=["Start the program immediately after downloading it.", "Wait for the program to complete before disconnecting. Only applies when starting program right away.", "Add a menu option to resend the code with bluetooth instead of disconnecting from the robot after the program ends."]
firmware=os.path.expanduser(awaitquestionary.path("What file would you like to flash?", complete_style=CompleteStyle.COLUMN, file_filter=lambdaname: name.endswith(".zip")).ask_async()),
494
-
name=awaitquestionary.text("What would you like to name your hub?").ask_async(),
491
+
firmware=os.path.expanduser(awaitquestionary.path("What file would you like to flash?", complete_style=CompleteStyle.COLUMN, file_filter=lambdaname: name.endswith(".zip")).ask_async()),
492
+
name=awaitquestionary.text("What would you like to name your hub?").ask_async(),
495
493
)
496
494
awaitFlash().run(args)
497
495
498
496
case2:
499
-
actions=["backup firmware using DFU", "restore firmware using DFU"]
497
+
actions=["backup firmware using DFU", "restore firmware using DFU"]
500
498
matchactions.index(awaitquestionary.select("What would you like to do?", actions).ask_async()):
0 commit comments