diff --git a/wled00/FX.cpp b/wled00/FX.cpp index dd9c9b66..1705a497 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -8410,7 +8410,7 @@ uint16_t mode_2Doctopus() { const uint8_t C_Y = rows / 2 + (SEGMENT.custom2 - 128)*rows/255; for (int x = xStart; x < xEnd; x++) { for (int y = yStart; y < yEnd; y++) { - rMap[XY(x, y)].angle = 40.7436f * atan2f(y - C_Y, x - C_X); // avoid 128*atan2()/PI + rMap[XY(x, y)].angle = int(40.7436f * atan2f((y - C_Y), (x - C_X))); // avoid 128*atan2()/PI rMap[XY(x, y)].radius = hypotf(x - C_X, y - C_Y) * mapp; //thanks Sutaburosu } }