diff --git a/rshell/main.py b/rshell/main.py index 40071f5..3d412fc 100755 --- a/rshell/main.py +++ b/rshell/main.py @@ -1419,7 +1419,7 @@ def add_arg(*args, **kwargs): def connect(port, baud=115200, user='micro', password='python', wait=0): """Tries to connect automagically via network or serial.""" - if '/' in port: + if '/' in port or re.match("COM\\d+", port, re.IGNORECASE): connect_serial(port, baud=baud, wait=wait) else: try: