Skip to content

Commit 421c7ba

Browse files
author
Maksymilian Wojczuk
committed
Changed MEM size for LwIP.
Wakaama needs more memory for multiple object management
1 parent 76c9fa9 commit 421c7ba

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Inc/lwipopts.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
/*-----------------------------------------------------------------------------*/
143143
/* USER CODE BEGIN 1 */
144144

145+
#define MEM_SIZE 3200
146+
145147
/* USER CODE END 1 */
146148

147149
#ifdef __cplusplus

Src/communication/wakaama_client/objects/object_target.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ lwm2m_object_t * get_target_object(void)
353353

354354
TARGET_t *target = target_list.next;
355355
while(target != NULL) {
356-
printf("Add targetObject: %d\n", i);
357356
targetP = (target_instance_t *)lwm2m_malloc(sizeof(target_instance_t));
358357
if (NULL == targetP) return NULL;
359358
memset(targetP, 0, sizeof(target_instance_t));
@@ -371,6 +370,7 @@ lwm2m_object_t * get_target_object(void)
371370

372371
targetObj->instanceList = LWM2M_LIST_ADD(targetObj->instanceList, targetP);
373372

373+
printf("Add targetObject %d: %s\n", i, targetP->target_type);
374374
target = target->next;
375375
i++;
376376
}

0 commit comments

Comments
 (0)