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

Create watchdog upon connect instead of before #272

Merged
merged 3 commits into from
Oct 22, 2023
Merged

Conversation

abhaybd
Copy link
Member

@abhaybd abhaybd commented Oct 20, 2023

The watchdog shouldn't be created until the first client connects, not when the protocol is registered. Otherwise the client won't respond to pings (duh, because it's not connected) which will cause the heartbeat to time out and E-stop the rover.

This fixes that bug, and was tested on hardware.

@abhaybd abhaybd requested a review from huttongrabiel October 20, 2023 03:07
Copy link
Contributor

@huttongrabiel huttongrabiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

big brain

@abhaybd abhaybd merged commit 5f2e37a into master Oct 22, 2023
3 checks passed
@abhaybd abhaybd deleted the fix-watchdog branch October 22, 2023 20:54
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