Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't try connect_telnet on Windows when '-p' is specified #233

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

github0null
Copy link

Hello,

I noticed this case can't work on Windows, because windows serial port name usually is: 'COMxx', not include '/'

rshell/rshell/main.py

Lines 1420 to 1427 in 56f75cf

def connect(port, baud=115200, user='micro', password='python', wait=0):
"""Tries to connect automagically via network or serial."""
if '/' in port:
connect_serial(port, baud=baud, wait=wait)
else:
try:
ip_address = socket.gethostbyname(port)
#print('Connecting to ip', ip_address)

So it always try connect_telnet and elapse more time.

#202

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant