From 84fef87d35ddff7c37a88911d75ccf7e31a0165a Mon Sep 17 00:00:00 2001 From: David Madison Date: Mon, 27 Mar 2017 19:37:49 -0400 Subject: [PATCH] Check if data can latch immediately Prior to this change, code would wait for an additional byte before latching. --- Arduino/LEDstream_FastLED/LEDstream_FastLED.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino index 10e83fc..9ff07a6 100644 --- a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino +++ b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino @@ -161,7 +161,7 @@ void adalight(){ } bytesRemaining--; } - else { + if(bytesRemaining == 0) { // End of data -- issue latch: mode = MODE_HEADER; // Begin next header search FastLED.show();