From 432e9b6293b96ab0ceea2c4ad183ae90671d9ed4 Mon Sep 17 00:00:00 2001 From: Yuan Hong Hui Date: Fri, 28 Jan 2022 17:06:48 +0800 Subject: [PATCH] ble mesh:example:correct repl config prompt --- .../ble_mesh_console/main/ble_mesh_console_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c index f6b0889a6e..e6f88b3874 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c @@ -70,7 +70,13 @@ void app_main(void) initialize_filesystem(); repl_config.history_save_path = HISTORY_PATH; #endif + +#if CONFIG_IDF_TARGET_ESP32C3 + repl_config.prompt = "esp32c3>"; +#else repl_config.prompt = "esp32>"; +#endif + // init console REPL environment ESP_ERROR_CHECK(esp_console_new_repl_uart(&uart_config, &repl_config, &repl));