diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2014-02-13 21:52:34 +0400 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2014-02-13 21:52:34 +0400 |
commit | a55b3c3af12f8b2174482101d44026054862e36b (patch) | |
tree | a21739babe1dc3129fd51c502a15975cc79ad9fc /FastLED.cpp | |
parent | cb259bc471f9d5a2de54d2ebdd567e5b54c9b86a (diff) |
Fix FastLED.delay
Diffstat (limited to 'FastLED.cpp')
-rw-r--r-- | FastLED.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/FastLED.cpp b/FastLED.cpp index b5a6a9d7..539bd5d6 100644 --- a/FastLED.cpp +++ b/FastLED.cpp @@ -86,4 +86,6 @@ void CFastLED::clearData() { } void CFastLED::delay(unsigned long ms) { + unsigned long start = millis(); + while((millis()-start) < ms) { LEDS.show(); } } |