uavcan bootloader watchdog_pet during long flashes (#25523)

This commit is contained in:
Alex Klimaj 2025-09-04 14:20:03 -06:00 committed by GitHub
parent fc8e2021e7
commit af6bf931c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -847,6 +847,8 @@ static flash_error_t file_read_and_program(const uavcan_Path_t *fw_path, uint8_t
request.offset += length;
bootloader.percentage_done = (request.offset / a_percent);
watchdog_pet();
} while (request.offset < fw_image_size &&
length == sizeof(response.data) &&
flash_status == FLASH_OK);