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

MAVProxy: fixed reconnection of serial port on windows after reboot #1431

Merged

Conversation

joshanne
Copy link
Contributor

@joshanne joshanne commented Jul 31, 2024

The line: master.port.inWaiting() is causing a SerialException when a reboot is sent to the flight controller from the console.

This change has been tested in windows and linux, it does not appear to have an effect on linux. The exception does not trigger in linux, but does on windows.

Does not has any effect on linux MAVProxy, but allows Windows to reconnect after sending a reboot through console
@joshanne
Copy link
Contributor Author

Also, tested disconnect of USB in windows, and flight controller reconnects as expected.

@peterbarker peterbarker merged commit 77da74c into ArduPilot:master Jul 31, 2024
2 checks passed
@peterbarker
Copy link
Contributor

Merged, thanks!

@joshanne joshanne deleted the pr/fix-windows-serial-reconnect branch July 31, 2024 12:57
@tridge
Copy link
Contributor

tridge commented Jul 31, 2024

@joshanne great, thanks!

@Cimos
Copy link

Cimos commented Aug 6, 2024

@joshanne This is probably the best bug fix ever.

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

Successfully merging this pull request may close these issues.

5 participants