Skip to content

Commit

Permalink
fix broken function
Browse files Browse the repository at this point in the history
  • Loading branch information
LucienMorey committed Nov 19, 2023
1 parent f00c2cc commit a4ed3bd
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 @@ -40,7 +40,7 @@ void AddressableLeds::tick()

void AddressableLeds::set_frequency(double new_pattern_cycle_frequency)
{
pattern_update_period_ms_ = (1 / (new_pattern_cycle_frequency * led_count)) * 1000
pattern_update_period_ms_ = (1 / (new_pattern_cycle_frequency * led_count_)) * 1000;
}

void AddressableLeds::calc_rainbow_()
Expand Down

0 comments on commit a4ed3bd

Please sign in to comment.