From 76d60dc7ecc7ae4d7211ff69b835f2b0c03dcaf7 Mon Sep 17 00:00:00 2001 From: Seppo Takalo Date: Tue, 3 Oct 2023 12:42:03 +0300 Subject: [PATCH] samples: lwm2m_client: Ignore new event Ignore new LWM2M_RD_CLIENT_EVENT_DEREGISTER that requires nothing from application, just a notify. Signed-off-by: Seppo Takalo --- samples/cellular/lwm2m_client/src/main.c | 1 + samples/cellular/modem_shell/src/cloud/cloud_lwm2m.c | 1 + 2 files changed, 2 insertions(+) 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;