Skip to content

Commit

Permalink
GCS_MAVLink: reduced delay between ftp packets
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Mar 28, 2020
1 parent 5c9ae33 commit e7fdf8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/GCS_MAVLink/GCS_FTP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void GCS_MAVLINK::ftp_error(struct pending_ftp &response, FTP_ERROR error) {
void GCS_MAVLINK::ftp_push_replies(pending_ftp &reply)
{
while (!ftp.replies->push(reply)) { // we must fit the response, keep shoving it in
hal.scheduler->delay(10);
hal.scheduler->delay(2);
}
}

Expand All @@ -160,7 +160,7 @@ void GCS_MAVLINK::ftp_worker(void) {
while (true) {
while (!ftp.requests->pop(request)) {
// nothing to handle, delay ourselves a bit then check again. Ideally we'd use conditional waits here
hal.scheduler->delay(10);
hal.scheduler->delay(2);
}

// if it's a rerequest and we still have the last response then send it
Expand Down

0 comments on commit e7fdf8f

Please sign in to comment.