Skip to content

Commit

Permalink
fix: ESP8266 compatibility
Browse files Browse the repository at this point in the history
See: kitesurfer1404/WS2812FX#58 (comment)
```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```
  • Loading branch information
oori authored Apr 14, 2018
1 parent 797f5cc commit 2956ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int64_t>(delay_before_) - delta_time); // NOLINT
max(static_cast<int64_t>(0), static_cast<int64_t>(delay_before_) - delta_time); // NOLINT
if (delay_before_ > 0) return;
}

Expand Down

0 comments on commit 2956ad5

Please sign in to comment.