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:
authorDaniel Garcia <danielgarcia@gmail.com>2014-02-13 21:52:34 +0400
committerDaniel Garcia <danielgarcia@gmail.com>2014-02-13 21:52:34 +0400
commita55b3c3af12f8b2174482101d44026054862e36b (patch)
treea21739babe1dc3129fd51c502a15975cc79ad9fc /FastLED.cpp
parentcb259bc471f9d5a2de54d2ebdd567e5b54c9b86a (diff)
Fix FastLED.delay
Diffstat (limited to 'FastLED.cpp')
-rw-r--r--FastLED.cpp2
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(); }
}