application: switch LED off after exiting mode
This commit is contained in:
parent
1633972d8d
commit
33b5b0352b
|
@ -217,6 +217,7 @@ static void command_mode(void* argument)
|
|||
for (uint8_t i=0; i<LENGTH(busvoodoo_modes); i++) { // go through all modes
|
||||
if (0==strcmp(argument, busvoodoo_modes[i]->name)) { // check for corresponding mode
|
||||
(*busvoodoo_mode->exit)(); // exit current mode
|
||||
led_off(); // switch off LEDs
|
||||
busvoodoo_mode = busvoodoo_modes[i]; // set matching mode as current mode
|
||||
busvoodoo_mode_complete = (*busvoodoo_mode->setup)(&terminal_prefix, NULL); // start setup
|
||||
terminal_send(0); // update the terminal prompt
|
||||
|
@ -330,7 +331,6 @@ void main(void)
|
|||
board_setup(); // setup board
|
||||
uart_setup(); // setup USART (for printing)
|
||||
usb_cdcacm_setup(); // setup USB CDC ACM (for printing)
|
||||
led_blink(0, 1); // switch blue LED on to show firmware is working
|
||||
|
||||
busvoodoo_setup(); // setup BusVoodoo board
|
||||
printf("\nwelcome to BusVoodoo ("); // print welcome message
|
||||
|
|
Loading…
Reference in New Issue