Skip to content

Commit

Permalink
fix: Remove code douplication
Browse files Browse the repository at this point in the history
Two case statements were identical. They are now combined into one.
  • Loading branch information
LukasWoodtli committed May 29, 2024
1 parent e8d7123 commit f00b8aa
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions core/bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,12 +685,7 @@ static uint8_t prv_checkServerStatus(lwm2m_server_t * serverP)
switch (serverP->status)
{
case STATE_BS_HOLD_OFF:
serverP->status = STATE_BS_PENDING;
LOG_ARG_DBG("Status changed to: %s", STR_STATUS(serverP->status));
break;

case STATE_BS_INITIATED:
// The ACK was probably lost
case STATE_BS_INITIATED: // The ACK was probably lost
serverP->status = STATE_BS_PENDING;
LOG_ARG_DBG("Status changed to: %s", STR_STATUS(serverP->status));
break;
Expand Down

0 comments on commit f00b8aa

Please sign in to comment.