Audio palette always start with black - fixes use of palette with Fire effect

This commit is contained in:
Will Tatam
2023-01-20 19:04:55 +00:00
parent 2d9b3fd284
commit 78bc566b06
2 changed files with 16 additions and 12 deletions

View File

@@ -520,7 +520,7 @@ CRGB getCRGBForBand(int x, uint8_t *fftResult, int pal) {
CRGB value;
CHSV hsv;
if(pal == 71) { // bit hacky to use palette id here, but don't want to litter the code with lots of different methods. TODO: add enum for palette creation type
if(x == 0) {
if(x == 1) {
value = CRGB(fftResult[10]/2, fftResult[4]/2, fftResult[0]/2);
}
else if(x == 255) {