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

Cannot compile library "Comparison of unsgined expression < 0 is always false" #2

Open
blasco opened this issue Jun 11, 2018 · 0 comments

Comments

@blasco
Copy link

blasco commented Jun 11, 2018

I get the following error:

/fwbuild-volumes/2.2/apps/mongooseOS/esp8266/build_contexts/build_ctx_222188454/libs/arduino-adafruit-tsl2561/src/TSL2561.cpp:176:19: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
     if ((ratio >= 0) && (ratio <= TSL2561_LUX_K1T)) {
                   ^
/fwbuild-volumes/2.2/apps/mongooseOS/esp8266/build_contexts/build_ctx_222188454/libs/arduino-adafruit-tsl2561/src/TSL2561.cpp:214:16: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
     if (temp < 0) temp = 0;

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

No branches or pull requests

1 participant