Skip to content

Commit

Permalink
fix issue with unsigned implicit cast
Browse files Browse the repository at this point in the history
  • Loading branch information
LucienMorey committed Nov 21, 2023
1 parent af79bac commit 1ed4229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1ed4229

Please sign in to comment.