Skip to content

Commit 2f4ab97

Browse files
marinjurjeviccarlescufi
authored andcommitted
net: lwm2m: add missing optional resource to firmware object
Firmware Update Protocol Support resource initialization has been left out in #41402. Initialise the resource in object creation function. Signed-off-by: Marin Jurjević <[email protected]>
1 parent 9b704f5 commit 2f4ab97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/net/lib/lwm2m/lwm2m_obj_firmware.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ static struct lwm2m_engine_obj_inst *firmware_create(uint16_t obj_inst_id)
395395
res_inst[obj_inst_id], j);
396396
INIT_OBJ_RES_OPTDATA(FIRMWARE_PACKAGE_VERSION_ID, res[obj_inst_id], i,
397397
res_inst[obj_inst_id], j);
398+
INIT_OBJ_RES_MULTI_OPTDATA(FIRMWARE_UPDATE_PROTO_SUPPORT_ID, res[obj_inst_id], i,
399+
res_inst[obj_inst_id], j, 1, false);
398400
INIT_OBJ_RES_DATA(FIRMWARE_UPDATE_DELIV_METHOD_ID, res[obj_inst_id], i,
399401
res_inst[obj_inst_id], j, &(delivery_method[obj_inst_id]),
400402
sizeof(delivery_method[obj_inst_id]));

0 commit comments

Comments
 (0)