From b452fff812049150bfe07811399285ff8867e932 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Thu, 30 May 2019 01:36:30 +0200 Subject: [PATCH] Don't do that many FastLED.show()s for now - that leads to lots of display glitches... --- src/pitrix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pitrix.cpp b/src/pitrix.cpp index 2283d06..6aaa2e5 100644 --- a/src/pitrix.cpp +++ b/src/pitrix.cpp @@ -60,9 +60,9 @@ void loop() { if (current_effect->can_be_shown_with_clock()) { effect_clock.loop(current_effect->clock_as_mask(), CRGB(0xFFFFFF), CRGB(0x000000)); } + FastLED.show(); } - - FastLED.show(); + if (MONITOR_LOOP_TIMES && millis()-loop_started_at>=MONITOR_LOOP_TIME_THRESHOLD) { LOG("Core * Loop took "); LOG(millis()-loop_started_at); LOGln("ms.");