mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-15 08:32:42 +08:00
feat(esptool): Not check if the port exits.
MacOS cannot list named "tty.XXXX" tty but can list "cu.XXXX" tty. But user may use "tty.XXXX" default.
This commit is contained in:
@ -2711,7 +2711,7 @@ def main():
|
||||
initial_baud = args.baud
|
||||
|
||||
ser_list = sorted(ports.device for ports in list_ports.comports())
|
||||
if args.port is None or args.port not in ser_list:
|
||||
if args.port is None:
|
||||
raise FatalError('Cannot find target port named \'%s\'.' % args.port)
|
||||
|
||||
try:
|
||||
|
Reference in New Issue
Block a user