Skip to content

Conversation

@ropg
Copy link

@ropg ropg commented May 24, 2021

Two fixes, each in its own commit.

  • First off, all serial connections were made in the exception handler for socket.gaierror because the port was first tried as an ip-address/DNS name. I made that pass and then continue, which leads to far less confusing stack traces.

  • Second, I introduce the command-line option -s, --suppress-reset to both pyboard and rshell to fix issue ESP32 "Could not enter raw repl" #27 "Could not enter raw REPL". The rationale for doing it this way is in the issue, so I won't duplicate here.

Serial connections were running as a prolonged exception handler for socket.gaierror because the code first tries it as an ip-address. This led to confusing stack traces. This fix gives that error a pass and then continues.
@ropg ropg changed the title Fix for the Fix for issue #27 "Could not enter raw REPL" May 24, 2021
@ropg
Copy link
Author

ropg commented May 26, 2021

I added the necessary changes to README.rst and redid with push -f so it's still just the two commits...

@jsuijs
Copy link

jsuijs commented May 8, 2022

Thanks!
rshell can't connect to my Maix board when a program is starts on reset. This option and a single reset button push button fixes this.

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.

2 participants