mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
idf monitor: fix crash when monitor baudrate argument set
Closes IDF-1902
This commit is contained in:
parent
22c82a4e28
commit
fbb5ada91d
@ -28,7 +28,7 @@ def action_extensions(base_actions, project_path):
|
||||
ports[0].encode("ascii", "ignore"))
|
||||
return ports[0]
|
||||
except IndexError:
|
||||
raise RuntimeError(
|
||||
raise FatalError(
|
||||
"No serial ports found. Connect a device, or use '-p PORT' option to set a specific port.")
|
||||
|
||||
def _get_esptool_args(args):
|
||||
|
@ -70,6 +70,7 @@ def run_tool(tool_name, args, cwd):
|
||||
return "'" + arg + "'"
|
||||
return arg
|
||||
|
||||
args = [str(arg) for arg in args]
|
||||
display_args = " ".join(quote_arg(arg) for arg in args)
|
||||
print("Running %s in directory %s" % (tool_name, quote_arg(cwd)))
|
||||
print('Executing "%s"...' % str(display_args))
|
||||
|
Loading…
Reference in New Issue
Block a user