Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kriegsman <1334634+kriegsman@users.noreply.github.com>2022-01-02 20:10:20 +0300
committerGitHub <noreply@github.com>2022-01-02 20:10:20 +0300
commit8347679388019a2921ae257d18da3402e6733880 (patch)
tree0fe8c9c699f0b4bb23a5d441c56914923f3744aa
parentf1caccbcc5570f991297c8a3912f817331c1154e (diff)
parentdad51a9353780e9928e35cbfa192817677a90ca9 (diff)
Merge pull request #1267 from ben-xo/bugfix/avr-clockless-trinket-hang-when-pixel-len-0
Prevent FastLED from hanging on 0-length pixel arrays
-rw-r--r--src/platforms/avr/clockless_trinket.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/platforms/avr/clockless_trinket.h b/src/platforms/avr/clockless_trinket.h
index 49de3b91..a8e73930 100644
--- a/src/platforms/avr/clockless_trinket.h
+++ b/src/platforms/avr/clockless_trinket.h
@@ -122,7 +122,9 @@ protected:
mWait.wait();
cli();
- showRGBInternal(pixels);
+ if(pixels.mLen > 0) {
+ showRGBInternal(pixels);
+ }
// Adjust the timer
#if (!defined(NO_CLOCK_CORRECTION) || (NO_CLOCK_CORRECTION == 0)) && (FASTLED_ALLOW_INTERRUPTS == 0)