diff --git a/ESP32-Console/main/main.c b/ESP32-Console/main/main.c index c8336af92..15e04ad99 100755 --- a/ESP32-Console/main/main.c +++ b/ESP32-Console/main/main.c @@ -41,17 +41,18 @@ void app_main(void) //esp_console_dev_usb_cdc_config_t cdc_config = ESP_CONSOLE_DEV_CDC_CONFIG_DEFAULT(); initialize_nvs(); - repl_config.prompt = "foxie >"; - ESP_ERROR_CHECK(esp_console_new_repl_uart(&uart_config, &repl_config, &repl)); /* INITIALIZE COMMANDS */ - register_commands(); + register_commands(); + + repl_config.prompt = "foxie >"; + ESP_ERROR_CHECK(esp_console_new_repl_uart(&uart_config, &repl_config, &repl)); - /* + /* START CONSOLE REPL - */ + */ ESP_ERROR_CHECK(esp_console_start_repl(repl)); }