mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 09:09:10 -04:00
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 <zhangyanjiao@espressif.com>
This commit is contained in:
parent
f3790a01cc
commit
cd38c01f57
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user