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

Add PCAN support through python-can #30

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

PetervdPerk-NXP
Copy link
Contributor

Depends on dronecan/pydronecan#25

Iterates python-can compatible PCAN interfaces and adds to them to ifaces list.

Tested on Windows.

@@ -105,6 +105,11 @@ def list_ifaces():
for x in mifaces:
out[x] = x

from can import detect_available_configs
Copy link
Member

Choose a reason for hiding this comment

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

I think we need a try except around this, to cope with systems without the can python module

Copy link
Member

Choose a reason for hiding this comment

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

i've added the exception check, can you test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tested with try except without python-can installed on windows seems to be working fine.

@tridge tridge merged commit b27d913 into dronecan:master Feb 9, 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