From 9d3e618bc5754e16e6f3c1e855f5d98e088b9b50 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Fri, 14 Jan 2022 19:00:06 +0100 Subject: [PATCH] examples: esp_ble_mesh: move definition of globals into source file --- .../esp_ble_mesh/ble_mesh_console/main/ble_mesh_adapter.c | 3 +++ .../esp_ble_mesh/ble_mesh_console/main/ble_mesh_adapter.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_adapter.c b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_adapter.c index 469bd06fae..064abfd860 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_adapter.c +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_adapter.c @@ -7,6 +7,9 @@ #include "esp_ble_mesh_networking_api.h" #include "ble_mesh_adapter.h" +ble_mesh_performance_statistics_t test_perf_statistics; +ble_mesh_node_statistics_t ble_mesh_node_statistics; + esp_ble_mesh_model_t *ble_mesh_get_model(uint16_t model_id) { esp_ble_mesh_model_t *model = NULL; diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_adapter.h b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_adapter.h index 3ed7655b3a..7ac523d59e 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_adapter.h +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_adapter.h @@ -53,7 +53,7 @@ typedef struct { uint16_t *package_index; uint8_t ttl; } ble_mesh_performance_statistics_t; -ble_mesh_performance_statistics_t test_perf_statistics; +extern ble_mesh_performance_statistics_t test_perf_statistics; typedef struct { uint32_t statistics; @@ -61,7 +61,7 @@ typedef struct { uint16_t *package_index; uint32_t total_package_num; } ble_mesh_node_statistics_t; -ble_mesh_node_statistics_t ble_mesh_node_statistics; +extern ble_mesh_node_statistics_t ble_mesh_node_statistics; extern SemaphoreHandle_t ble_mesh_node_sema;