Audio palette always start with black - fixes use of palette with Fire effect (#14)

This commit is contained in:
netmindz
2023-01-26 12:00:10 +00:00
committed by GitHub
parent 1b3952c889
commit 3953b7a2a5
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) {