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 compile error when max() is a template function #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jakeru
Copy link

@jakeru jakeru commented Jan 6, 2020

When max() is a template function instead of a macro the two arguments
to it must be of same type.

The problem was raised in issue
#6
"Cant compile for nodemcu/ESP8266"
and I had the same problem when trying to use the library.

This change is the same that Anthony Toole proposed as a fix for this
issue. I have verified that with this change the library works also
with ESP8266 core 2.6.3.

When max() is a template function instead of a macro the two arguments
to it must be of same type.

The problem was raised in issue
stoduk#6
"Cant compile for nodemcu/ESP8266"
and I had the same problem when trying to use the library.

This change is the same that Anthony Toole proposed as a fix for this
issue. I have verified that with this change the library works also
with ESP8266 core 2.6.3.
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.

1 participant