Function nrfxlib_sys::nrf_modem_delta_dfu_rollback
source · pub unsafe extern "C" fn nrf_modem_delta_dfu_rollback() -> c_int
Expand description
Schedule a rollback to the previous firmware.
The modem needs to reboot to run the previous firmware.
To reboot the modem, uninitialize the Modem library and reinitialize it
using the * nrf_modem_deinit
- and * nrf_modem_init
- respectively.
@note The final result of the rollback operation is reported via
nrf_modem_init
- .
Returns 0 On success. Returns -NRF_EPERM The Modem library is not initialized. Returns -NRF_ENOMEM Not enough shared memory for this request. Returns -NRF_ESHUTDOWN Modem was shut down. @returns A positive error code from @ref nrf_modem_delta_dfu_errors, if the modem refused the operation.