fix off-by-one bug in fadeStripColor
This commit is contained in:
parent
5dc966c010
commit
742341c01f
@ -1,9 +1,8 @@
|
||||
// User configuration
|
||||
|
||||
#ifndef nightlightConfig_h
|
||||
#define nightlightConfig_h
|
||||
#pragma once
|
||||
|
||||
#define NIGHTLIGHT_VERSION "1.0"
|
||||
#define NIGHTLIGHT_VERSION "1.3"
|
||||
|
||||
// wifi stuff
|
||||
#define WIFI_CONFIGURED 3
|
||||
@ -24,5 +23,3 @@
|
||||
|
||||
// serial debug enabled (comment out to disable)
|
||||
#define SERIAL_DEBUG
|
||||
|
||||
#endif
|
@ -68,6 +68,8 @@ void fadeStripColor(Adafruit_NeoPixel* strip, gRGB prev, gRGB next)
|
||||
setStripColor(strip, cColor(curr.r, curr.g, curr.b));
|
||||
delay(delayTime);
|
||||
}
|
||||
curr = next;
|
||||
setStripColor(strip, cColor(curr.r, curr.g, curr.b));
|
||||
}
|
||||
|
||||
void setFirstPixelTemporary(Adafruit_NeoPixel *strip, uint32_t color, uint16_t time)
|
||||
|
Loading…
Reference in New Issue
Block a user