Fixed meteor FX crashing

pull/152/head
cschwinne 2019-03-27 21:06:07 +01:00
rodzic 794e17442f
commit 1a3b4ac2ac
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

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