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
add silent mode support for vector #1764
base: main
Are you sure you want to change the base?
Conversation
can/interfaces/vector/canlib.py
Outdated
@@ -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) |
There was a problem hiding this comment.
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.
Are you still working on the failing tests? |
works as expected
@zariiii9003 looks like tests are passing except one that is known to periodically fail |
There was a problem hiding this 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
@zariiii9003 is this ready to get merged in? |
haven't tested on hardware yet