Skip to content

Commit fb9d3ec

Browse files
authored
fix(zigbee): Update log messages
1 parent d0166b0 commit fb9d3ec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: libraries/Zigbee/src/ep/ZigbeeAnalog.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,15 @@ void ZigbeeAnalog::addAnalogOutput() {
4343

4444
//set attribute method -> method overridden in child class
4545
void ZigbeeAnalog::zbAttributeSet(const esp_zb_zcl_set_attr_value_message_t *message) {
46-
//check the data and call right method
4746
if (message->info.cluster == ESP_ZB_ZCL_CLUSTER_ID_ANALOG_OUTPUT) {
4847
if (message->attribute.id == ESP_ZB_ZCL_ATTR_ANALOG_OUTPUT_PRESENT_VALUE_ID && message->attribute.data.type == ESP_ZB_ZCL_ATTR_TYPE_SINGLE) {
4948
float analog_output = *(float *)message->attribute.data.value;
5049
analogOutputChanged(analog_output);
5150
} else {
52-
log_w("Received message ignored. Attribute ID: %d not supported for On/Off Light", message->attribute.id);
51+
log_w("Received message ignored. Attribute ID: %d not supported for Analog Output", message->attribute.id);
5352
}
5453
} else {
55-
log_w("Received message ignored. Cluster ID: %d not supported for On/Off Light", message->info.cluster);
54+
log_w("Received message ignored. Cluster ID: %d not supported for Analog endpoint", message->info.cluster);
5655
}
5756
}
5857

0 commit comments

Comments
 (0)