Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subsys: dfu: dfu_target: Do not clear configured flag #13537

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions samples/cellular/http_update/modem_full_update/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,13 +420,6 @@ static int update_download(void)
{
int err;
const char *file;

err = fota_download_init(fota_dl_handler);
if (err != 0) {
printk("fota_download_init() failed, err %d\n", err);
return err;
}

const struct dfu_target_full_modem_params params = {
.buf = fmfu_buf,
.len = sizeof(fmfu_buf),
Expand All @@ -437,8 +430,14 @@ static int update_download(void)
}
};

err = dfu_target_full_modem_cfg(&params);
err = fota_download_init(fota_dl_handler);
if (err != 0) {
printk("fota_download_init() failed, err %d\n", err);
return err;
}

err = dfu_target_full_modem_cfg(&params);
if (err != 0 && err != -EALREADY) {
printk("dfu_target_full_modem_cfg failed: %d\n", err);
return err;
}
Expand Down
2 changes: 0 additions & 2 deletions subsys/dfu/dfu_target/src/dfu_target_full_modem.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,5 @@ int dfu_target_full_modem_reset(void)
return -EPERM;
}

configured = false;

return dfu_target_stream_reset();
}
Loading