From bc56c1a0e1a614e91062d7857bb270a755b004ab Mon Sep 17 00:00:00 2001 From: Frank Date: Sun, 5 Mar 2023 22:30:08 +0100 Subject: [PATCH] bugfixes * xml.cpp: correct type for checkbox global led buffer" (was not shown correctly) * fx.cpp: 2D floating blobs - correct swapped x/y coordinates (did not render correctly on non-square matrix) --- wled00/FX.cpp | 4 ++-- wled00/xml.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wled00/FX.cpp b/wled00/FX.cpp index 5f9ad4030..4148a8aab 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -5792,8 +5792,8 @@ uint16_t mode_2Dfloatingblobs(void) { } } uint32_t c = SEGMENT.color_from_palette(blob->color[i], false, false, 0); - if (blob->r[i] > 1.f) SEGMENT.fill_circle(blob->y[i], blob->x[i], roundf(blob->r[i]), c); - else SEGMENT.setPixelColorXY(blob->y[i], blob->x[i], c); + if (blob->r[i] > 1.f) SEGMENT.fill_circle(blob->x[i], blob->y[i], roundf(blob->r[i]), c); + else SEGMENT.setPixelColorXY(blob->x[i], blob->y[i], c); // move x if (blob->x[i] + blob->r[i] >= cols - 1) blob->x[i] += (blob->sX[i] * ((cols - 1 - blob->x[i]) / blob->r[i] + 0.005f)); else if (blob->x[i] - blob->r[i] <= 0) blob->x[i] += (blob->sX[i] * (blob->x[i] / blob->r[i] + 0.005f)); diff --git a/wled00/xml.cpp b/wled00/xml.cpp index d91b32ab0..83754002d 100644 --- a/wled00/xml.cpp +++ b/wled00/xml.cpp @@ -383,7 +383,7 @@ void getSettingsJS(byte subPage, char* dest) sappend('v',SET_F("CB"),strip.cctBlending); sappend('v',SET_F("FR"),strip.getTargetFps()); sappend('v',SET_F("AW"),Bus::getGlobalAWMode()); - sappend('v',SET_F("LD"),strip.useLedsArray); + sappend('c',SET_F("LD"),strip.useLedsArray); for (uint8_t s=0; s < busses.getNumBusses(); s++) { Bus* bus = busses.getBus(s);