Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve lwm2m_step() state logic #538

Merged
merged 1 commit into from
Feb 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/registration.c
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,7 @@ lwm2m_status_t registration_getStatus(lwm2m_context_t * contextP)
case STATE_REG_UPDATE_NEEDED:
case STATE_REG_FULL_UPDATE_NEEDED:
case STATE_REG_UPDATE_PENDING:
case STATE_DEREG_PENDING:
if (reg_status == STATE_REG_FAILED)
{
reg_status = STATE_REGISTERED;
Expand All @@ -1089,7 +1090,6 @@ lwm2m_status_t registration_getStatus(lwm2m_context_t * contextP)
break;

case STATE_REG_FAILED:
case STATE_DEREG_PENDING:
case STATE_DEREGISTERED:
default:
break;
Expand Down