Fix identaiton

This commit is contained in:
Stephan Hadinger 2022-11-19 15:01:01 +01:00
parent 82df1a9152
commit 16b34963d5

View File

@ -1774,17 +1774,17 @@ void Z_IncomingMessage(class ZCLFrame &zcl_received) {
#endif // USE_BERRY #endif // USE_BERRY
if (!attr_list.isEmpty()) { if (!attr_list.isEmpty()) {
if (defer_attributes) { if (defer_attributes) {
// Prepare for publish // Prepare for publish
if (zigbee_devices.jsonIsConflict(srcaddr, attr_list)) { if (zigbee_devices.jsonIsConflict(srcaddr, attr_list)) {
// there is conflicting values, force a publish of the previous message now and don't coalesce // there is conflicting values, force a publish of the previous message now and don't coalesce
zigbee_devices.jsonPublishFlush(srcaddr); zigbee_devices.jsonPublishFlush(srcaddr);
} }
zigbee_devices.jsonAppend(srcaddr, attr_list); zigbee_devices.jsonAppend(srcaddr, attr_list);
zigbee_devices.setTimer(srcaddr, 0 /* groupaddr */, USE_ZIGBEE_COALESCE_ATTR_TIMER, 0 /*clusterid*/, srcendpoint, Z_CAT_READ_ATTR, 0, &Z_PublishAttributes); zigbee_devices.setTimer(srcaddr, 0 /* groupaddr */, USE_ZIGBEE_COALESCE_ATTR_TIMER, 0 /*clusterid*/, srcendpoint, Z_CAT_READ_ATTR, 0, &Z_PublishAttributes);
} else { } else {
// Publish immediately // Publish immediately
zigbee_devices.jsonPublishNow(srcaddr, attr_list); zigbee_devices.jsonPublishNow(srcaddr, attr_list);
} }
} }
} }