Skip to content

Commit

Permalink
akemi bugfix fix
Browse files Browse the repository at this point in the history
map2 --> map
  • Loading branch information
softhack007 authored Sep 30, 2024
1 parent 4ed8ded commit 3765d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/FX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7530,7 +7530,7 @@ uint16_t mode_2DAkemi(void) {
if (um_data && fftResult) {
int xMax = cols/8;
for (int x=0; x < xMax; x++) {
unsigned band = map2(x, 0, max(xMax,4), 0, 15); // map 0..cols/8 to 16 GEQ bands
unsigned band = map(x, 0, max(xMax,4), 0, 15); // map 0..cols/8 to 16 GEQ bands
band = constrain(band, 0, 15);
int barHeight = map(fftResult[band], 0, 255, 0, 17*rows/32);
CRGB color = CRGB(SEGMENT.color_from_palette((band * 35), false, PALETTE_SOLID_WRAP, 0));
Expand Down

0 comments on commit 3765d55

Please sign in to comment.