Skip to content

Commit

Permalink
AP_Bootloader: cope with very delayed links in DroneCAN bootloader
Browse files Browse the repository at this point in the history
this makes it possible to update a periph over the
support.ardupilot.org link
  • Loading branch information
tridge committed Dec 26, 2024
1 parent 42f1aea commit 2d0174c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tools/AP_Bootloader/can.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ static void handle_file_read_response(CanardInstance* ins, CanardRxTransfer* tra
}
}
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;
}
if (uavcan_protocol_file_ReadResponse_decode(transfer, &fw_update.reads[idx].pkt)) {
Expand Down

0 comments on commit 2d0174c

Please sign in to comment.