Skip to content

Commit

Permalink
fix issues, send_page() sending incorrect data during retry in secure…
Browse files Browse the repository at this point in the history
… fota mode
  • Loading branch information
qianxiansheng committed Feb 28, 2024
1 parent f7606b4 commit 65cc1a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/ingchips/fota/Updater.kt
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ class Updater
while (err < MAX_RETRY) {
showMsg(if (err == 0) "burn ${item.name} ..." else "burn ${item.name} (retry #${err} ...")

if (BurnPage(page, item.writeAddr + i)) {
if (BurnPage(page.clone(), item.writeAddr + i)) {
err = 0
break
}
Expand Down

0 comments on commit 65cc1a6

Please sign in to comment.