Fix update check was always checking.

LED update should happen when the timer is past the end_time_, not it is
less than the end_time_.
pull/389/head
Donald Curtis 7 years ago
parent bb5c89c76d
commit 35c8352ef0

@ -96,7 +96,7 @@ Heatmap::loopHook(bool is_post_clear) {
void void
Heatmap::update(void) { Heatmap::update(void) {
if (end_time_ && (millis() > end_time_)) if (end_time_ && (millis() < end_time_))
return; return;
end_time_ = millis() + update_delay; end_time_ = millis() + update_delay;

Loading…
Cancel
Save