1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/wakaama/common: fix lwm2m_set_objlink_by_path

This commit is contained in:
Leandro Lanzieri 2021-07-30 09:44:21 +02:00
parent 6b5a1818f1
commit 113ae64a55
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593

View File

@ -443,6 +443,6 @@ int lwm2m_set_objlink_by_path(lwm2m_client_data_t *client_data, const char *path
{
_objlink_t link = { .object_id = &object_id_in, .instance_id = &instance_id_in };
return _get_resource_data_by_path(client_data, path, path_len, LWM2M_TYPE_OBJECT_LINK, &link,
return _set_resource_data_by_path(client_data, path, path_len, LWM2M_TYPE_OBJECT_LINK, &link,
sizeof(_objlink_t));
}