Skip to content

Make CANCommander compile only when SimpleCANio.h exists#88

Merged
runger1101001 merged 2 commits into
simplefoc:devfrom
Moddingear:optional_SimpleCANio
Apr 22, 2026
Merged

Make CANCommander compile only when SimpleCANio.h exists#88
runger1101001 merged 2 commits into
simplefoc:devfrom
Moddingear:optional_SimpleCANio

Conversation

@Moddingear
Copy link
Copy Markdown

This addresses #87

@Moddingear
Copy link
Copy Markdown
Author

(__has_include requires C++17)

@Moddingear
Copy link
Copy Markdown
Author

This effectively disables can_commander for arduino due board, and anything else with C++ < 17, but it still can be enabled by setting has_SimpleCANio to 1

@runger1101001 runger1101001 merged commit 455cd1e into simplefoc:dev Apr 22, 2026
10 of 11 checks passed
@runger1101001 runger1101001 added this to the 1.1.0 milestone Apr 24, 2026
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