AP_Periph: prevent loop stuck internal error in AP_Periph bootloader flash

This commit is contained in:
Andrew Tridgell 2020-12-06 10:30:07 +11:00 committed by Peter Barker
parent 0c440d5675
commit d0c1fd701f

View File

@ -923,6 +923,7 @@ static void process1HzTasks(uint64_t timestamp_usec)
fptr gptr = (fptr) (void *) foo;
gptr();
}
EXPECT_DELAY_MS(2000);
hal.scheduler->delay(1000);
AP_HAL::Util::FlashBootloader res = hal.util->flash_bootloader();
switch (res) {