Skip to content

Commit

Permalink
Fix Basic_Ota sample, PartitionStream requires blockErase
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Mar 11, 2024
1 parent a0b1746 commit 7b87eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/Basic_Ota/app/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void doUpgrade()
auto spiffsPart = findSpiffsPartition(part);
if(spiffsPart) {
// use user supplied values (defaults for 4mb flash in hardware config)
otaUpdater->addItem(SPIFFS_URL, spiffsPart, new Storage::PartitionStream(spiffsPart));
otaUpdater->addItem(SPIFFS_URL, spiffsPart, new Storage::PartitionStream(spiffsPart, true));
}

// request switch and reboot on success
Expand Down

0 comments on commit 7b87eab

Please sign in to comment.