Skip to content

Commit

Permalink
fix initializer order
Browse files Browse the repository at this point in the history
  • Loading branch information
SpenceKonde committed Oct 1, 2023
1 parent 0f6e5d3 commit 7d585c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions megaavr/libraries/tinyNeoPixel/tinyNeoPixel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

// Constructor when length, pin and type are known at compile-time:
tinyNeoPixel::tinyNeoPixel(uint16_t n, uint8_t p, neoPixelType t) :
begun(false), brightness(0), pixels(NULL), latchTime(50), endTime(0) {
begun(false), latchTime(50), brightness(0), pixels(NULL), endTime(0) {
updateType(t);
updateLength(n);
setPin(p);
Expand All @@ -62,8 +62,7 @@ tinyNeoPixel::tinyNeoPixel(uint16_t n, uint8_t p, neoPixelType t) :
// command. If using this constructor, MUST follow up with updateType(),
// updateLength(), etc. to establish the strand type, length and pin number!
tinyNeoPixel::tinyNeoPixel() :
begun(false), numLEDs(0), numBytes(0), pin(NOT_A_PIN), brightness(0), pixels(NULL),
rOffset(1), gOffset(0), bOffset(2), wOffset(1), latchTime(50), endTime(0) {
begun(false), numLEDs(0), numBytes(0), latchTime(50), pin(NOT_A_PIN), brightness(0), pixels(NULL), rOffset(1), gOffset(0), bOffset(2), wOffset(1), endTime(0) {
}

tinyNeoPixel::~tinyNeoPixel() {
Expand Down

0 comments on commit 7d585c5

Please sign in to comment.