add silent mode support for vector by cperkulator · Pull Request #1764 · hardbyte/python-can

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@cperkulator

Copy link

Contributor

haven't tested on hardware yet

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 reacted with thumbs up emoji

@zariiii9003 zariiii9003 merged commit fc6ff22 into hardbyte:main

Jun 7, 2024

@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

Reviewers

@zariiii9003 zariiii9003 zariiii9003 approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@cperkulator @zariiii9003