/* Function to continue SoftDevice update. 
This function will be called after reset if there is a valid SoftDevice in Bank0 or Bank1 required to be relocated and activated through MBR commands. */
static uint32_t nrf_dfu_sd_continue(uint32_t src_addr, nrf_dfu_bank_t *p_bank)
/* Function to continue SoftDevice update. 
This function will be called after reset if there is a valid SoftDevice in Bank0 or Bank1 required to be relocated and activated through MBR commands. */
static uint32_t nrf_dfu_sd_continue(uint32_t src_addr, nrf_dfu_bank_t *p_bank)
{
    uint32_t ret_val;
    ret_val = nrf_dfu_sd_continue_impl(src_addr, p_bank);
    if (ret_val != NRF_SUCCESS)
    {
        NRF_LOG_INFO("SD update continuation failed\r\n");
        return ret_val;
    }
    nrf_dfu_invalidate_bank(p_bank);
    ret_val = nrf_dfu_settings_write(NULL);
    return ret_val;
}