Skip to content

Commit

Permalink
Adjust diversity LED indication on TFSIK
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Sep 6, 2023
1 parent f124391 commit 031da82
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Firmware/radio/radio_446x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1033,14 +1033,15 @@ radio_set_diversity_gpio(enum DIVERSITY_Enum state)
uint8_t ant1, ant2;

switch (state) {
case DIVERSITY_ENABLED:
case DIVERSITY_ANT1:
default:
ant1 = GPIO_ANT_1_SW;
ant2 = GPIO_ANT_2_SW;
#if defined(LED_DIVERSITY)
LED_DIVERSITY = LED_OFF;
#endif

case DIVERSITY_ENABLED:
default:
ant1 = GPIO_ANT_1_SW;
ant2 = GPIO_ANT_2_SW;
break;

case DIVERSITY_ANT2:
Expand Down

0 comments on commit 031da82

Please sign in to comment.