diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index df690568..f98f5dcb 100644 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -919,7 +919,7 @@ static void xyFromBlock(uint16_t &x,uint16_t &y, uint16_t i, uint16_t vW, uint16 x = vW / 2 + vStrip; y = vH / 2 - vStrip - 1 + i2 * vStrip * 2; } - else if (i <= SEGLEN * 0.75) { //bottom, right to left + else if (i <= SEGLEN * 0.75f) { //bottom, right to left i2 = (i-SEGLEN*0.5f)/(SEGLEN*0.25f); x = vW / 2 + vStrip - i2 * vStrip * 2; y = vH / 2 + vStrip;