From cf5bcefef1c1c72b8afcdff92d758b41d4ad8ec3 Mon Sep 17 00:00:00 2001 From: Troy <133468432+TroyMitchell911@users.noreply.github.com> Date: Thu, 15 Aug 2024 21:27:03 +0800 Subject: [PATCH] fix(wifi/mesh): Modify examples/mesh/internal_communication Delete the secondary judgment of whether it is the root node in the sending task Closes https://github.com/espressif/esp-idf/pull/14373 Signed-off-by: zhangyanjiao --- examples/mesh/internal_communication/main/mesh_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/mesh/internal_communication/main/mesh_main.c b/examples/mesh/internal_communication/main/mesh_main.c index 3dfffb16a8..263d59d76c 100644 --- a/examples/mesh/internal_communication/main/mesh_main.c +++ b/examples/mesh/internal_communication/main/mesh_main.c @@ -80,7 +80,7 @@ void esp_mesh_p2p_tx_main(void *arg) if (!esp_mesh_is_root()) { ESP_LOGI(MESH_TAG, "layer:%d, rtableSize:%d, %s", mesh_layer, esp_mesh_get_routing_table_size(), - (is_mesh_connected && esp_mesh_is_root()) ? "ROOT" : is_mesh_connected ? "NODE" : "DISCONNECT"); + is_mesh_connected ? "NODE" : "DISCONNECT"); vTaskDelay(10 * 1000 / portTICK_PERIOD_MS); continue; }