-
Notifications
You must be signed in to change notification settings - Fork 67
[maple_upload] Improve script on linux and macosx #62
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
Conversation
This makes it possible to recover if upload-reset isn't working, for example if a board is running a sketch without USB CDC enabled Changes: * Uncomment `set -e` * Ask the user to manually reset their device if upload-reset fails * Retry dfu-util if no device is found * Print periods while waiting for serial port * Exit with an error if script times out while waiting for serial port * Send all messages to STDERR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR.
shfmt was used to check format, see my comments.
And one thought about the number of retry.
Thanks for the review! Let me know if I should squash those fixes in to the first commit or if I should squash everything to one commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This makes it possible to recover if upload-reset isn't working, for example if a board is running a sketch without USB CDC enabled
Changes:
set -e