fix: Cloudflash now supports full-wipe before flashing

This commit is contained in:
2026-03-20 08:40:20 +02:00
parent d8ba64da55
commit 2d57c75d2f
2 changed files with 3 additions and 3 deletions

View File

@@ -767,7 +767,7 @@ function StepFlash({ firmware, flashType, serial, nvsSchema, onDone }) {
await loaderRef.current.writeFlash({
fileArray,
flashSize: "keep", flashMode: "keep", flashFreq: "keep",
eraseAll: false, compress: true,
eraseAll: flashType === FLASH_TYPE_FULL, compress: true,
reportProgress(fileIndex, written, total) {
const pct = (written / total) * 100;
if (flashType === FLASH_TYPE_FULL) {