From 2956ad580ace72dfd71f0beb90d9312c2c77d97b Mon Sep 17 00:00:00 2001 From: Oori Date: Sun, 15 Apr 2018 00:57:39 +0300 Subject: [PATCH] fix: ESP8266 compatibility See: https://github.com/kitesurfer1404/WS2812FX/issues/58#issuecomment-355793296 ```With v2.4.0 min() and max() are now implemented using the std::min and std::max library and both function parameters have to be the same data type, the compiler won't do implicit type conversion``` --- src/jled.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jled.cpp b/src/jled.cpp index 5307b81..f064d25 100644 --- a/src/jled.cpp +++ b/src/jled.cpp @@ -119,7 +119,7 @@ void JLed::Update() { // wait until delay_before time is elapsed before actually doing anything if (delay_before_ > 0) { delay_before_ = - max(0, static_cast(delay_before_) - delta_time); // NOLINT + max(static_cast(0), static_cast(delay_before_) - delta_time); // NOLINT if (delay_before_ > 0) return; }