From c92a9a87db3d5ee0db041c33bedc087fe5d1d991 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 11 Jan 2023 11:15:55 -0500 Subject: [PATCH] Fix dynamic bridge metadata init order after #24336 (#24370) --- .../dynamic-bridge-app/linux/include/data-model/Attribute.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/dynamic-bridge-app/linux/include/data-model/Attribute.h b/examples/dynamic-bridge-app/linux/include/data-model/Attribute.h index 66d4388df6d565..7a7be2a997036c 100644 --- a/examples/dynamic-bridge-app/linux/include/data-model/Attribute.h +++ b/examples/dynamic-bridge-app/linux/include/data-model/Attribute.h @@ -35,7 +35,7 @@ struct Attribute : public AttributeInterface { Attribute(chip::CharSpan name, chip::AttributeId id, EmberAfAttributeMask mask, EmberAfAttributeType type, size_t size, Type value = Type()) : - mMetadata(EmberAfAttributeMetadata{ id, type, (uint16_t) size, mask, ZAP_EMPTY_DEFAULT() }), + mMetadata(EmberAfAttributeMetadata{ ZAP_EMPTY_DEFAULT(), id, (uint16_t) size, type, mask }), mData(value), mName(name) {}