fix(color): preview may not work when editing customisable switch colors in radio setup (#6714)

This commit is contained in:
philmoz
2025-10-25 09:20:57 +10:00
committed by GitHub
parent d95bbf1ebd
commit 65bf15f18c
4 changed files with 35 additions and 20 deletions
+1
View File
@@ -25,6 +25,7 @@
// "Off", "White", "Red", "Green", "Yellow", "Orange", "Blue", "Pink"
constexpr uint32_t colorTable[] = {0x000000, 0xFFFFFF, 0xFF0000, 0x00FF00, 0xFFFF00, 0xFF4000, 0x0000FF, 0xFF00FF};
void setFSEditOverride(int index, uint32_t color);
void setFSLedOverride(uint8_t index, bool state, uint8_t r, uint8_t g, uint8_t b);
void setFSLedOFF(uint8_t index);
void setFSLedON(uint8_t index);