ble_mesh: Fix compile error when -O2 (performance) is chosen

This commit is contained in:
lly
2020-04-02 20:13:08 +08:00
parent 511dc5516d
commit 6e7d43dd89
11 changed files with 24 additions and 17 deletions

View File

@@ -138,7 +138,7 @@ static void provisioner_prov_complete(int node_index, const uint8_t uuid[16], ui
uint8_t elem_num, uint16_t net_idx)
{
example_node_info_t *node = NULL;
char name[10];
char name[11] = {0};
esp_err_t err;
ESP_LOGI(TAG, "Node index: 0x%x, unicast address: 0x%02x, element num: %d, netkey index: 0x%02x",

View File

@@ -191,7 +191,7 @@ static esp_err_t prov_complete(int node_idx, const esp_ble_mesh_octet16_t uuid,
esp_ble_mesh_client_common_param_t common = {0};
esp_ble_mesh_cfg_client_get_state_t get_state = {0};
esp_ble_mesh_node_info_t *node = NULL;
char name[10];
char name[11] = {0};
int err;
ESP_LOGI(TAG, "node index: 0x%x, unicast address: 0x%02x, element num: %d, netkey index: 0x%02x",