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

Change max to stdmax #362

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

snowrodeo
Copy link

ok, i changed the 'new' macro fix (ws2812fx_max) to the recommended std::max from algorithm.h. This works fine on my complex program so far.

@moose4lord
Copy link
Collaborator

Would you mind doing the same for the min macro?

@snowrodeo
Copy link
Author

Happy to help. Just scanned the code for min and the only usage is in WS2812FX.cpp. In my system, that seems to be pulled from template in a esp32 include file and compiling fine.

It probably makes sense to switch to std::min, but wanted to put this info out there.

I will make the change, test it, and create another PR for you

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