Merge branch 'bugfix/ble_mesh_console_correct_repl_config_prompt' into 'master'

ble mesh:example:correct repl config prompt in ble mesh console

See merge request espressif/esp-idf!16986
pull/8484/head
Island 2022-03-01 13:50:24 +08:00
commit f1a4057877
2 zmienionych plików z 12 dodań i 6 usunięć

Wyświetl plik

@ -11,16 +11,11 @@
#include "esp_vfs_dev.h"
#include "nvs.h"
#include "nvs_flash.h"
#include "esp_vfs_fat.h"
#include "esp_console.h"
#include "ble_mesh_console_decl.h"
#include "ble_mesh_example_init.h"
#define TAG "ble_mesh_test"
#if CONFIG_STORE_HISTORY
#define MOUNT_PATH "/data"
@ -62,7 +57,18 @@ void app_main(void)
initialize_filesystem();
repl_config.history_save_path = HISTORY_PATH;
#endif
#if CONFIG_IDF_TARGET_ESP32C3
repl_config.prompt = "esp32c3>";
#elif CONFIG_IDF_TARGET_ESP32S3
repl_config.prompt = "esp32s3>";
#elif CONFIG_IDF_TARGET_ESP32H2
repl_config.prompt = "esp32h2>";
#else
repl_config.prompt = "esp32>";
#endif
printf("!!!ready!!!\n");
// init console REPL environment
ESP_ERROR_CHECK(esp_console_new_repl_uart(&uart_config, &repl_config, &repl));

Wyświetl plik

@ -159,7 +159,7 @@ void ble_mesh_register_mesh_node(void)
int ble_mesh_register_cb(int argc, char** argv)
{
ESP_LOGE(TAG, "enter %s\n", __func__);
ESP_LOGD(TAG, "enter %s\n", __func__);
ble_mesh_node_init();
esp_ble_mesh_register_prov_callback(ble_mesh_prov_cb);
esp_ble_mesh_register_custom_model_callback(ble_mesh_model_cb);