AP_Bootloader: cope with very delayed links in DroneCAN bootloader
this makes it possible to update a periph over the support.ardupilot.org link
This commit is contained in:
parent
dd1b843da4
commit
fd56f99218
@ -276,7 +276,8 @@ static void handle_file_read_response(CanardInstance* ins, CanardRxTransfer* tra
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!found) {
|
if (!found) {
|
||||||
// not a current transfer
|
// not a current transfer, we may be getting long delays
|
||||||
|
fw_update.rtt_ms = MIN(3000, fw_update.rtt_ms+250);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (uavcan_protocol_file_ReadResponse_decode(transfer, &fw_update.reads[idx].pkt)) {
|
if (uavcan_protocol_file_ReadResponse_decode(transfer, &fw_update.reads[idx].pkt)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user