Skip to content

add silent mode support for vector #1764

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 3 commits into from
Jun 7, 2024

Conversation

cperkulator
Copy link
Contributor

haven't tested on hardware yet

@@ -204,6 +204,8 @@ def __init__(
self.channel_masks: Dict[int, int] = {}
self.index_to_channel: Dict[int, int] = {}
self._can_protocol = CanProtocol.CAN_FD if is_fd else CanProtocol.CAN_20

self.silent_mode = kwargs.get('silent_mode', False)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd prefer listen_only like in socketcan. Also, make this variable private.

@zariiii9003
Copy link
Collaborator

Are you still working on the failing tests?

@cperkulator
Copy link
Contributor Author

@zariiii9003 looks like tests are passing except one that is known to periodically fail

Copy link
Collaborator

@zariiii9003 zariiii9003 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, thank you

@cperkulator
Copy link
Contributor Author

@zariiii9003 is this ready to get merged in?

@zariiii9003 zariiii9003 merged commit fc6ff22 into hardbyte:main Jun 7, 2024
28 of 29 checks passed
@cperkulator cperkulator deleted the vector_silent_mode branch June 9, 2024 00:52
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