static ledseq_t const * sequences[] = { seq_testPassed, seq_lowbat, seq_charged, seq_charging, seq_chargingMax, seq_bootloader, seq_armed, seq_calibrated, seq_alive, seq_linkup, }; /* Led sequences */ const ledseq_t seq_lowbat[] = { { true, LEDSEQ_WAITMS(1000)}, { 0, LEDSEQ_LOOP}, }; const ledseq_t seq_armed[] = { { true, LEDSEQ_WAITMS(50)}, {false, LEDSEQ_WAITMS(250)}, { 0, LEDSEQ_LOOP}, }; const ledseq_t seq_calibrated[] = { #ifndef CALIBRATED_LED_MORSE { true, LEDSEQ_WAITMS(50)}, {false, LEDSEQ_WAITMS(450)}, { 0, LEDSEQ_LOOP}, #else
/* Led sequence priority */ static ledseq_t * sequences[] = { seq_testPassed, seq_lowbat, seq_charged, seq_charging, seq_bootloader, seq_armed, seq_calibrated, seq_alive, seq_linkup, }; /* Led sequences */ ledseq_t seq_lowbat[] = { { true, LEDSEQ_WAITMS(1000)}, { 0, LEDSEQ_LOOP}, }; ledseq_t seq_armed[] = { { true, LEDSEQ_WAITMS(50)}, {false, LEDSEQ_WAITMS(250)}, { 0, LEDSEQ_LOOP}, }; ledseq_t seq_calibrated[] = { { true, LEDSEQ_WAITMS(50)}, {false, LEDSEQ_WAITMS(450)}, { 0, LEDSEQ_LOOP}, };