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

Init with USB or CAN #17

Closed
macbef opened this issue Jan 23, 2023 · 2 comments
Closed

Init with USB or CAN #17

macbef opened this issue Jan 23, 2023 · 2 comments

Comments

@macbef
Copy link

macbef commented Jan 23, 2023

I know CAN and USB can't work at the same time.
Is there a method to switch between CAN and USB in runtime?
On my hardware I can detect the USB-Bus power, so I know if the HW is connected via USB or not.
I'd like to load the CAN functions only if not connected to USB.
At the moment the constructor
eXoCAN can;
already kills USB. Any suggestions?

@Trebornide
Copy link
Contributor

Trebornide commented Jan 23, 2023 via email

@macbef
Copy link
Author

macbef commented Jan 24, 2023

Thanks!
Works like a charm!

@macbef macbef closed this as completed Jan 24, 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

No branches or pull requests

2 participants