Better LED management

This commit is contained in:
Geoffrey Merck 2020-05-04 19:12:45 +02:00
parent 419ab89ee9
commit 87feadd451
1 changed files with 13 additions and 7 deletions

View File

@ -160,15 +160,21 @@ void FancyLEDEffect()
{ {
int ledCount = 10; int ledCount = 10;
bitband_t foo[] = {&BB_LED, &BB_COSLED, &BB_PTT, &BB_DMR, &BB_DSTAR, &BB_YSF, &BB_P25, NULL, NULL, NULL}; bitband_t foo[] = {&BB_LED, &BB_COSLED, &BB_PTT, &BB_DMR, &BB_DSTAR, &BB_YSF, &BB_P25,
#if !defined(USE_ALTERNATE_NXDN_LEDS) #if defined(USE_ALTERNATE_NXDN_LEDS)
foo[7] = &BB_NXDN; NULL,
#else
&BB_NXDN,
#endif #endif
#if !defined(USE_ALTERNATE_POCSAG_LEDS) #if defined(USE_ALTERNATE_POCSAG_LEDS)
foo[8] = &BB_POCSAG; NULL,
#else
&BB_POCSAG,
#endif #endif
#if !defined(USE_ALTERNATE_FM_LEDS) #if defined(USE_ALTERNATE_FM_LEDS)
foo[9] = &BB_FM; NULL};
#else
&BB_FM};
#endif #endif
for(int i=0; i<ledCount; i++){ for(int i=0; i<ledCount; i++){