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>2013-11-11 08:30:11 +0400
committerDaniel Garcia <danielgarcia@gmail.com>2013-11-11 08:30:11 +0400
commitc50134abdf65b0648f6e289e1eb438a3256bfe19 (patch)
tree799d6f1e2a57adc0e0b677e50ea154d681c498d3 /FastLED.cpp
parent0dfb792d57ed7b2ce34985fe624d56c8640f1531 (diff)
parent6800f7fd10eddc6778a00a48d5174413820203ac (diff)
Merging from master
Diffstat (limited to 'FastLED.cpp')
-rw-r--r--FastLED.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/FastLED.cpp b/FastLED.cpp
index 4ffa4165..3969a712 100644
--- a/FastLED.cpp
+++ b/FastLED.cpp
@@ -68,11 +68,11 @@ void CFastLED::showColor(const struct CRGB & color, uint8_t scale) {
}
}
-void CFastLED::clear(boolean includeLedData) {
- showColor(CRGB(0,0,0), 0);
- if(includeLedData) {
- clearData();
+void CFastLED::clear(boolean writeData) {
+ if(writeData) {
+ showColor(CRGB(0,0,0), 0);
}
+ clearData();
}
void CFastSPI_LED2::clearData() {