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

Check if a port is connected or not #445

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Check if a port is connected or not #445

merged 1 commit into from
Oct 18, 2024

Conversation

drslebedev
Copy link
Contributor

@drslebedev drslebedev commented Oct 17, 2024

Currently, our implementation does not check whether a port is connected or if it is synchronous or asynchronous. We calculate the minimum number of processed samples across input and output ports, and only if both processedIn > 0 and processedOut > 0 do we forward tags.

This PR introduces a check to determine if a port is connected, which partially addresses the issue.

This PR helps to fix tag forwarding prolem for Picoscope block.

See #444 for more explanations.

…amples.

Signed-off-by: drslebedev <dr.s.lebedev@gmail.com>
Copy link
Member

@wirew0rm wirew0rm left a comment

Choose a reason for hiding this comment

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

Looks good as discussed and outlined in the linked issue 👍
Thanks for following this up!

@wirew0rm wirew0rm merged commit 5e7ecc5 into main Oct 18, 2024
9 of 11 checks passed
@wirew0rm wirew0rm deleted the is_connected branch October 18, 2024 11:22
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