Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: wakaama/list.c
- Revision:
- 15:d0f20339c1ad
- Parent:
- 3:a280069151ac
- Child:
- 16:31c387e94b6d
diff -r ec9e195830ff -r d0f20339c1ad wakaama/list.c
--- a/wakaama/list.c Sat May 06 11:21:27 2017 +0000
+++ b/wakaama/list.c Sun May 07 03:00:16 2017 +0000
@@ -47,11 +47,15 @@
lwm2m_list_t * lwm2m_list_find(lwm2m_list_t * head,
uint16_t id)
{
+ printf(" ## %d, %d\n",id, head->id);
+
while (NULL != head && head->id < id)
{
+ printf(" ##-- %d, %d\n",id, head->id);
head = head->next;
}
-
+ printf(" ## %d, %d\n",id, head->id);
+
if (NULL != head && head->id == id) return head;
return NULL;