diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2013-11-11 08:30:11 +0400 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2013-11-11 08:30:11 +0400 |
commit | c50134abdf65b0648f6e289e1eb438a3256bfe19 (patch) | |
tree | 799d6f1e2a57adc0e0b677e50ea154d681c498d3 /FastLED.cpp | |
parent | 0dfb792d57ed7b2ce34985fe624d56c8640f1531 (diff) | |
parent | 6800f7fd10eddc6778a00a48d5174413820203ac (diff) |
Merging from master
Diffstat (limited to 'FastLED.cpp')
-rw-r--r-- | FastLED.cpp | 8 |
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() { |