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/max compilation errors #2

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

Conversation

martinblech
Copy link

Cast int literals to char to match the other argument's type and prevent this compilation error in PlatformIO: NBHX711.cpp:13:60: error: no matching function for call to 'min(const unsigned char&, int)'

Cast int literals to char to match the other argument's type and prevent this compilation error in PlatformIO: `NBHX711.cpp:13:60: error: no matching function for call to 'min(const unsigned char&, int)'`
@TexeCode07
Copy link

histSize = 3 * min(max((int)depth, 6), 255/3);
just add edit the line in NBHX711.cpp with this

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