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:
Dong Heng
2018-07-13 13:31:38 +08:00
parent 7005ceeede
commit 403510f141

View File

@ -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: