Skip to content

Reset baudrate when connecting from Python #1837

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

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

pd0wm
Copy link
Contributor

@pd0wm pd0wm commented Jan 25, 2024

When a script changes the baudrate of the panda this becomes a persistent change until the panda is power cycled. This can cause other scripts to not work. This wasted me quite a bit of time debugging.

Moved the call to can_reset_communications to the connect function to make behavior consistent between creating a new panda object and calling reset().

Feel free to close if you think this is intended behavior. This can also be solved by improving user feedback (e.g. printing a warning on connect).

@adeebshihadeh adeebshihadeh merged commit eb9b0df into commaai:master Jan 25, 2024
@pd0wm pd0wm deleted the reset-can-speed branch January 26, 2024 10:42
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