From 24967938f2ca02fbeb253e4f7bde2daaab6d4077 Mon Sep 17 00:00:00 2001 From: Kirill Shumilov Date: Tue, 2 Jun 2020 17:28:11 +0300 Subject: [PATCH] fix(stdlib): get rid of duplicating a default argument values in WS2812 inline file for `fill` and `fillPattern` methods --- workspace/__ardulib__/WS2812_NoBufffer/WS2812.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workspace/__ardulib__/WS2812_NoBufffer/WS2812.inl b/workspace/__ardulib__/WS2812_NoBufffer/WS2812.inl index 48f73792..31f51557 100644 --- a/workspace/__ardulib__/WS2812_NoBufffer/WS2812.inl +++ b/workspace/__ardulib__/WS2812_NoBufffer/WS2812.inl @@ -162,7 +162,7 @@ void WS2812::fill(XColor color) { show(); } -void WS2812::fill(XColor color, uint32_t pixelCount, bool fromTail = false) { +void WS2812::fill(XColor color, uint32_t pixelCount, bool fromTail) { cli(); // If fromTail is true // Skip pixels by filling them with black color @@ -178,7 +178,7 @@ void WS2812::fill(XColor color, uint32_t pixelCount, bool fromTail = false) { show(); } -void WS2812::fillPattern(Pattern* pat, uint32_t shift = 0) { +void WS2812::fillPattern(Pattern* pat, uint32_t shift) { PatternNode* first = pat->first(); PatternNode* cur = first; uint32_t _shift = (uint32_t) shift % _length;