Compare commits

...

2 Commits

Author SHA1 Message Date
Troy
f09842df5a
Merge 1e531c5d3a into 59e1838270 2024-09-05 17:48:07 -07:00
Troy
1e531c5d3a
Modify examples/mesh/internal_communication
Delete the secondary judgment of whether it is the root node in the sending task
2024-08-15 21:27:03 +08:00

View File

@ -80,7 +80,7 @@ void esp_mesh_p2p_tx_main(void *arg)
if (!esp_mesh_is_root()) { if (!esp_mesh_is_root()) {
ESP_LOGI(MESH_TAG, "layer:%d, rtableSize:%d, %s", mesh_layer, ESP_LOGI(MESH_TAG, "layer:%d, rtableSize:%d, %s", mesh_layer,
esp_mesh_get_routing_table_size(), 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); vTaskDelay(10 * 1000 / portTICK_PERIOD_MS);
continue; continue;
} }