diff --git a/samples/cellular/lwm2m_client/src/main.c b/samples/cellular/lwm2m_client/src/main.c index 320a89a83992..0592405744e8 100644 --- a/samples/cellular/lwm2m_client/src/main.c +++ b/samples/cellular/lwm2m_client/src/main.c @@ -397,6 +397,7 @@ static void rd_client_event(struct lwm2m_ctx *client, enum lwm2m_rd_client_event } switch (client_event) { + case LWM2M_RD_CLIENT_EVENT_DEREGISTER: case LWM2M_RD_CLIENT_EVENT_NONE: /* do nothing */ k_mutex_unlock(<e_mutex); diff --git a/samples/cellular/modem_shell/src/cloud/cloud_lwm2m.c b/samples/cellular/modem_shell/src/cloud/cloud_lwm2m.c index 59e4337e407e..9de3a44ff4f8 100644 --- a/samples/cellular/modem_shell/src/cloud/cloud_lwm2m.c +++ b/samples/cellular/modem_shell/src/cloud/cloud_lwm2m.c @@ -224,6 +224,7 @@ static void cloud_lwm2m_rd_client_event_cb(struct lwm2m_ctx *client_ctx, enum lwm2m_rd_client_event client_event) { switch (client_event) { + case LWM2M_RD_CLIENT_EVENT_DEREGISTER: case LWM2M_RD_CLIENT_EVENT_NONE: /* Do nothing. */ break;