diff --git a/leds.cpp b/leds.cpp index e2acef3..808848a 100644 --- a/leds.cpp +++ b/leds.cpp @@ -45,7 +45,7 @@ void AddressableLeds::set_frequency(double new_pattern_cycle_frequency) void AddressableLeds::calc_rainbow_() { - unsigned int times_to_increment = (millis() - last_tick_time_) / pattern_update_period_ms_; + long int times_to_increment = (millis() - last_tick_time_) / pattern_update_period_ms_; if (times_to_increment > 0) { last_tick_time_ = millis();