1
0

fix off-by-one bug in fadeStripColor

This commit is contained in:
Gottfried Mayer 2023-01-19 19:48:28 +01:00
parent 5dc966c010
commit 742341c01f
3 changed files with 11 additions and 12 deletions

View File

@ -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

View File

@ -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)