Skip to content

Commit 334d8f1

Browse files
committed
modules: app: Add missing state transition
Add missing state transition. For delta updates we go straight to rebooting state after the download has been downloaded. Signed-off-by: Simen S. Røstad <simen.rostad@nordicsemi.no>
1 parent 852f7c2 commit 334d8f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/modules/app/app.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,9 @@ static void fota_run(void *o)
403403
case FOTA_NETWORK_DISCONNECT_NEEDED:
404404
STATE_SET(app_state, STATE_FOTA_NETWORK_DISCONNECT_PENDING);
405405
return;
406+
case FOTA_REBOOT_NEEDED:
407+
STATE_SET(app_state, STATE_FOTA_REBOOTING);
408+
return;
406409
default:
407410
/* Don't care */
408411
break;

0 commit comments

Comments
 (0)