Skip to content

Commit

Permalink
Decrease logging
Browse files Browse the repository at this point in the history
  • Loading branch information
fsaris committed Oct 13, 2024
1 parent 42a4cea commit 09f0baa
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions components/awox_mesh/awox_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ void AwoxMesh::sync_and_publish_group_state(Group *group) {
unsigned char G = 0;
unsigned char B = 0;

ESP_LOGD(TAG, "Sync %s", group->state_as_string().c_str());
ESP_LOGV(TAG, "Sync %s", group->state_as_string().c_str());

for (Device *device : group->get_devices()) {
if (group->device_info == nullptr && device->device_info != nullptr) {
Expand All @@ -457,7 +457,7 @@ void AwoxMesh::sync_and_publish_group_state(Group *group) {
state = true;
}

ESP_LOGD(TAG, "Sync group state, %s", device->state_as_string().c_str());
ESP_LOGV(TAG, "Sync group state, %s", device->state_as_string().c_str());
if (first_device) {
first_device = false;
different_state = false;
Expand Down Expand Up @@ -521,15 +521,14 @@ void AwoxMesh::sync_and_publish_group_state(Group *group) {
group->B = B;
ESP_LOGD(TAG, "Sync group state, %s", group->state_as_string().c_str());
} else {
ESP_LOGD(TAG, "No sync of group state, %s", group->state_as_string().c_str());
ESP_LOGV(TAG, "No sync of group state, %s", group->state_as_string().c_str());
}

this->publish_state(group);
}

void AwoxMesh::publish_state(MeshDestination *mesh_destination) {

ESP_LOGD(TAG, "Publish: %s", mesh_destination->state_as_string().c_str());
ESP_LOGV(TAG, "Publish: %s", mesh_destination->state_as_string().c_str());
this->publish_connection->publish_state(mesh_destination);

for (Group *group : mesh_destination->get_groups()) {
Expand Down

0 comments on commit 09f0baa

Please sign in to comment.