Skip to content

Commit

Permalink
Fixed meteor FX crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
Aircoookie committed Mar 27, 2019
1 parent 794e174 commit 1a3b4ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions wled00/WS2812FX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion wled00/wled00.ino
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@


//version code in format yymmddb (b = daily build)
#define VERSION 1903252
#define VERSION 1903271
char versionString[] = "0.8.4";


Expand Down

0 comments on commit 1a3b4ac

Please sign in to comment.