forked from Makuna/NeoPixelBus
ClearTo with first and last index doesn't handle a single pixel
The argument valid test needed to support that first and last could be the same
This commit is contained in:
+1
-1
@@ -211,7 +211,7 @@ public:
|
||||
{
|
||||
if (first < _countPixels &&
|
||||
last < _countPixels &&
|
||||
first < last)
|
||||
first <= last)
|
||||
{
|
||||
uint8_t temp[T_COLOR_FEATURE::PixelSize];
|
||||
uint8_t* pixels = _method.getPixels();
|
||||
|
||||
Reference in New Issue
Block a user