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

Move check if CAN_ADDON AND CANFD_ADDON are defined simultaneously, to respective hardware #720

Merged

Conversation

lenvm
Copy link
Collaborator

@lenvm lenvm commented Dec 30, 2024

What

This PR moves the check if CAN_ADDON and CANFD_ADDON are defined simultaneously, to throw an error if these functions use the same hardware pins, only to the hardware where these pins overlap (i.e. LilyGo).

Why

To ensure that the respective error message is only triggered for the hardware that it needs to trigger for.

How

By moving the check from include.h to hw_liligo.h, as this check is only relevant for LilyGo hardware.

@lenvm lenvm added enhancement New feature or request hardware Hardware support needed labels Dec 30, 2024
@lenvm lenvm requested a review from dalathegreat December 30, 2024 23:52
@dalathegreat dalathegreat merged commit 208c643 into dalathegreat:main Dec 31, 2024
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hardware Hardware support needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants