fix(bumblebee): customisable switches display issue, audio mute not working (#5722)

This commit is contained in:
3djc
2024-12-20 08:12:52 +10:00
committed by GitHub
parent 689dbb23db
commit 91a961f7fb
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -885,7 +885,11 @@ void menuModelSetup(event_t event)
case ITEM_MODEL_SETUP_SW5:
case ITEM_MODEL_SETUP_SW6:
{
#if defined(FUNCTION_SWITCHES_RGB_LEDS)
int index = (k - ITEM_MODEL_SETUP_SW1) / 2;
#else
int index = (k - ITEM_MODEL_SETUP_SW1);
#endif
lcdDrawSizedText(INDENT_WIDTH, y, STR_CHAR_SWITCH, 2, menuHorizontalPosition < 0 ? attr : 0);
// TODO: restore following line when switchGetName(index+switchGetMaxSwitches()) doesn't crash anymore