mirror of
https://github.com/wled/WLED.git
synced 2025-04-23 14:27:18 +00:00
Fixed meteor FX crashing
This commit is contained in:
parent
794e17442f
commit
1a3b4ac2ac
@ -1918,7 +1918,7 @@ uint16_t WS2812FX::mode_meteor() {
|
||||
for(int j = 0; j < meteorSize; j++) {
|
||||
uint16_t index = in + j;
|
||||
if(in + j >= SEGMENT.stop) {
|
||||
index = SEGMENT.start + (in + j - SEGMENT.stop) -2;
|
||||
index = SEGMENT.start + (in + j - SEGMENT.stop);
|
||||
}
|
||||
|
||||
_locked[index] = 240;
|
||||
@ -1953,7 +1953,7 @@ uint16_t WS2812FX::mode_meteor_smooth() {
|
||||
for(int j = 0; j < meteorSize; j++) {
|
||||
uint16_t index = in + j;
|
||||
if(in + j >= SEGMENT.stop) {
|
||||
index = SEGMENT.start + (in + j - SEGMENT.stop) -2;
|
||||
index = SEGMENT.start + (in + j - SEGMENT.stop);
|
||||
}
|
||||
setPixelColor(index, color_blend(getPixelColor(index), color_from_palette(240, false, true, 255), 48));
|
||||
_locked[index] = 240;
|
||||
|
@ -98,7 +98,7 @@
|
||||
|
||||
|
||||
//version code in format yymmddb (b = daily build)
|
||||
#define VERSION 1903252
|
||||
#define VERSION 1903271
|
||||
char versionString[] = "0.8.4";
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user