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

[Camera] Fix a synchronization bug in example #667

Merged
merged 2 commits into from
Apr 26, 2023
Merged

[Camera] Fix a synchronization bug in example #667

merged 2 commits into from
Apr 26, 2023

Conversation

alrvid
Copy link
Contributor

@alrvid alrvid commented Apr 22, 2023

Fixes a synchronization bug. Return if there's no timeout OR if there's no sync byte received. The previous version needed both to be true at the same time to return without sending a frame, which meant that a frame was sent if there was a timeout even if no sync byte had been received. That, in turn, caused random problems for the Processing sketch on the other end.

Fixes a synchronization bug. Return if there's no timeout OR if there's no sync byte received.
The previous version needed both to be true at the same time to return without sending a
frame, which meant that a frame was sent if there was a timeout even if no sync byte had been
received. That, in turn, caused random problems for the Processing sketch on the other end.
@alrvid alrvid requested a review from sebromero April 22, 2023 19:03
The timeout functionality has changed, and it needs to be explained.
Timeouts because of lost sync bytes should be done on the 
opposite end if needed. Otherwise, the two sides get out of sync
every now and then.
@alrvid
Copy link
Contributor Author

alrvid commented Apr 23, 2023

The new functionality uses the timeouts to set the (constant) frame rate. If timeouts are needed for lost sync bytes, they should be implemented on the other end to keep the synchronization robust.

@facchinm facchinm changed the title Fix a synchronization bug [Camera] Fix a synchronization bug in example Apr 26, 2023
@facchinm facchinm merged commit 7b645b7 into arduino:main Apr 26, 2023
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