mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
uavcan bootloader watchdog_pet during long flashes (#25523)
This commit is contained in:
parent
fc8e2021e7
commit
af6bf931c1
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user