Merge pull request #675 from keyboardio/LEDPaletteTheme/fix-double-reindexing

LEDPaletteTheme: Fix the key address refreshAt() uses
pull/677/head
Jesse Vincent 5 years ago committed by GitHub
commit 0a48a42d0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -51,7 +51,7 @@ void LEDPaletteTheme::refreshAt(uint16_t theme_base, uint8_t theme, KeyAddr key_
uint8_t pos = KeyboardHardware.getLedIndex(key_addr);
cRGB color = lookupColorAtPosition(map_base, pos);
::LEDControl.setCrgbAt(KeyAddr(pos), color);
::LEDControl.setCrgbAt(key_addr, color);
}

Loading…
Cancel
Save