fix: do not init the watchdog in flash driver (#5321)

This commit is contained in:
Raphael Coeffic
2024-07-25 18:27:59 +10:00
committed by GitHub
parent 061f39fd79
commit e9a2b7e31c
3 changed files with 2 additions and 5 deletions
+2
View File
@@ -94,7 +94,9 @@ void BootloaderFirmwareUpdate::flashFirmware(const char * filename, ProgressHand
break;
}
for (UINT j = 0; j < count; j += FLASH_PAGESIZE) {
WDG_ENABLE(3000);
flashWrite(CONVERT_UINT_PTR(FIRMWARE_ADDRESS + i + j), CONVERT_UINT_PTR(buffer + j));
WDG_ENABLE(WDG_DURATION);
}
progressHandler("Bootloader", STR_WRITING, i, flash_size);