Skip to content

Commit

Permalink
ClearTo with first and last index doesn't handle a single pixel
Browse files Browse the repository at this point in the history
The argument valid test needed to support that first and last could be
the same
  • Loading branch information
Makuna committed Sep 25, 2016
1 parent b2a9dad commit ccb0239
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "git",
"url": "https://github.com/Makuna/NeoPixelBus"
},
"version": "2.2.2",
"version": "2.2.3",
"frameworks": "arduino",
"platforms": "*"
}
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=NeoPixelBus by Makuna
version=2.2.2
version=2.2.3
author=Michael C. Miller ([email protected])
maintainer=Michael C. Miller ([email protected])
sentence=A library that makes controlling NeoPixels (WS2811, WS2812 & SK6812) and DotStars (ADA102) easy.
Expand Down
2 changes: 1 addition & 1 deletion src/NeoPixelBus.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ template<typename T_COLOR_FEATURE, typename T_METHOD> class NeoPixelBus
{
if (first < _countPixels &&
last < _countPixels &&
first < last)
first <= last)
{
uint8_t temp[T_COLOR_FEATURE::PixelSize];
uint8_t* pixels = _method.getPixels();
Expand Down

0 comments on commit ccb0239

Please sign in to comment.