Skip to content

Commit

Permalink
fix(bumblebee): customisable switches display issue, audio mute not w…
Browse files Browse the repository at this point in the history
…orking (#5722)
  • Loading branch information
3djc authored Dec 19, 2024
1 parent 689dbb2 commit 91a961f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions radio/src/gui/128x64/model_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion radio/src/targets/taranis/hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -2725,7 +2725,7 @@
#define JACK_DETECT_GPIO GPIO_PIN(GPIOC, 13) // PC.13
#define AUDIO_SPEAKER_ENABLE_GPIO GPIO_PIN(GPIOD, 14) // PD.14
#define HEADPHONE_TRAINER_SWITCH_GPIO GPIO_PIN(GPIOD, 9) // PD.09
#elif defined(RADIO_FAMILY_T20)
#elif defined(RADIO_FAMILY_T20) || defined(RADIO_BUMBLEBEE)
#define AUDIO_MUTE_GPIO GPIO_PIN(GPIOG, 4) // PG.04
#define AUDIO_MUTE_DELAY 500 // ms
#define AUDIO_UNMUTE_DELAY 150 // ms
Expand Down

0 comments on commit 91a961f

Please sign in to comment.