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

fix: only reset PTP clock when in "Faulty" or "Disabled" state #23

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

pemo-ml
Copy link
Contributor

@pemo-ml pemo-ml commented Jul 8, 2022

resetPtpClock() should be called when a camera is an erroneous state.
The old implementation would also reset the PTP slave state, even when the camera was still setting up in the "Listening" state.

The PR makes sure, that the camera is truly reset if it ends up in the state "Faulty" or "Disabled"

Page 7 of this document has a float chart of the different states and transitions a PTP slave goes through.

@kledom kledom self-requested a review July 8, 2022 16:47
Copy link
Contributor

@kledom kledom left a comment

Choose a reason for hiding this comment

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

LGTM!

@kledom kledom merged commit 3852745 into FraunhoferIOSB:main Jul 8, 2022
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