nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ img_mgmt_state_set_pending()

int img_mgmt_state_set_pending ( int slot,
int permanent )

#include <img_mgmt.h>

Set the pending flag for the specified image slot.

Sets the specified image slot to be used as the active slot during next boot, either for test or permanently. A non-permanent image will be reverted unless the image confirms itself during next boot.

Parameters
slotSlot number.
permanentPermanent or test only.
Returns
0 on success, non-zero on failure