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

Fix min function deduction on ESP platforms #7

Merged
merged 1 commit into from
Jul 7, 2023
Merged

Conversation

dmadison
Copy link
Owner

@dmadison dmadison commented Jul 7, 2023

Having the calculation as part of the function argument was apparently confusing the template. Casting the result of the uint16 - uint16 math to a uint16 fixes the problem and it can find the template just fine.

This wasn't previously an issue on the AVR platforms because the min function is done using a macro there.

Hopefully fixes #5.

Having the calculation as part of the function argument was apparently confusing the template. Casting the result of the uint16 - uint16 math to a uint16 fixes the problem and it can find the template just fine.

This wasn't previously an issue on the AVR platforms because the min function is done using a macro there.
@dmadison dmadison merged commit 656f049 into master Jul 7, 2023
6 checks passed
@dmadison dmadison deleted the min-patch branch July 7, 2023 02:55
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.

The library does not compile with esp8266 arduino core 3.1.2.
1 participant