Skip to content

Commit 25ade86

Browse files
committed
Filter/sort bugfix
1 parent c10ec29 commit 25ade86

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

wled00/FX.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ static const char _data_FX_MODE_RAINBOW_CYCLE[] PROGMEM = "Rainbow@!,Size;;!";
458458
* Alternating pixels running function.
459459
*/
460460
static uint16_t running(uint32_t color1, uint32_t color2, bool theatre = false) {
461-
unsigned width = (theatre ? 3 : 1) + (SEGMENT.intensity >> 4); // window
461+
int width = (theatre ? 3 : 1) + (SEGMENT.intensity >> 4); // window
462462
uint32_t cycleTime = 50 + (255 - SEGMENT.speed);
463463
uint32_t it = strip.now / cycleTime;
464464
bool usePalette = color1 == SEGCOLOR(0);
@@ -3351,7 +3351,7 @@ uint16_t candle(bool multi)
33513351
if (fadeStep == 0) fadeStep = 1;
33523352
}
33533353

3354-
if (i > 0) {
3354+
if (i > 0) {
33553355
SEGMENT.setPixelColor(i, color_blend(SEGCOLOR(1), SEGMENT.color_from_palette(i, true, PALETTE_SOLID_WRAP, 0), s));
33563356

33573357
SEGENV.data[d] = s; SEGENV.data[d+1] = s_target; SEGENV.data[d+2] = fadeStep;

wled00/data/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2827,9 +2827,8 @@ function search(field, listId = null) {
28272827

28282828
// restore default preset sorting if no search term is entered
28292829
if (!search) {
2830-
if (listId === 'pcont') populatePresets();
2831-
if (listId === 'pallist') populatePalettes();
2832-
return;
2830+
if (listId === 'pcont') { populatePresets(); return; }
2831+
if (listId === 'pallist') { populatePalettes(); return; }
28332832
}
28342833

28352834
// clear filter if searching in fxlist

0 commit comments

Comments
 (0)