Closed guillaume-dorczynski closed 5 years ago
Hi, thanks for that library, I like it :)
Except one warning when I compile it, for ESP32 on PlatformIO :
BH1750.cpp:144:21: warning: overflow in implicit constant conversion [-Woverflow] uint16_t level(NAN);
Do you have an alternative that would remove the warning?
Why not simply : uint16_t level = 0; ?
Edit: or : uint16_t level = (uint16_t)NAN; will compile with no warning.
Resolved by #44.
Hi, thanks for that library, I like it :)
Except one warning when I compile it, for ESP32 on PlatformIO :
BH1750.cpp:144:21: warning: overflow in implicit constant conversion [-Woverflow] uint16_t level(NAN);