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:
authorMark Kriegsman <1334634+kriegsman@users.noreply.github.com>2020-01-20 23:29:39 +0300
committerGitHub <noreply@github.com>2020-01-20 23:29:39 +0300
commit63240c522bdd50515c5aa6a87b8fbd16b2c08c1e (patch)
treea253be89dcd750224a8cf75faed174132e0f9b5b
parent2589ff69190f332c389ec64927268b5f139a0694 (diff)
parentde86febbfc005285b2541b84c035a94c836d2f0d (diff)
Merge pull request #904 from SnowMB/patch-1
CPixelView operator-() result points to wrong data
-rw-r--r--pixelset.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pixelset.h b/pixelset.h
index 097df6d6..9c69176e 100644
--- a/pixelset.h
+++ b/pixelset.h
@@ -64,7 +64,7 @@ public:
/// Not sure i want this? inline CPixelView operator()(int end) { return CPixelView(leds, 0, end); }
/// Return the reverse ordering of this set
- inline CPixelView operator-() { return CPixelView(leds + len - dir, len - dir, 0); }
+ inline CPixelView operator-() { return CPixelView(leds, len - dir, 0); }
/// Return a pointer to the first element in this set
inline operator PIXEL_TYPE* () const { return leds; }