Skip to content

Commit

Permalink
samples: lwm2m_client: Ignore new event
Browse files Browse the repository at this point in the history
Ignore new LWM2M_RD_CLIENT_EVENT_DEREGISTER that requires
nothing from application, just a notify.

Signed-off-by: Seppo Takalo <[email protected]>
  • Loading branch information
SeppoTakalo authored and rlubos committed Oct 4, 2023
1 parent 9a6ec99 commit 76d60dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/cellular/lwm2m_client/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(&lte_mutex);
Expand Down
1 change: 1 addition & 0 deletions samples/cellular/modem_shell/src/cloud/cloud_lwm2m.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 76d60dc

Please sign in to comment.