mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AP_Networking: ensure PPP does not dominate the CPU
This commit is contained in:
parent
7e29452082
commit
2048631526
@ -39,6 +39,8 @@ uint32_t AP_Networking_PPP::ppp_output_cb(ppp_pcb *pcb, const void *data, uint32
|
|||||||
if (n > 0) {
|
if (n > 0) {
|
||||||
remaining -= n;
|
remaining -= n;
|
||||||
ptr += n;
|
ptr += n;
|
||||||
|
} else {
|
||||||
|
hal.scheduler->delay_microseconds(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return len;
|
return len;
|
||||||
|
Loading…
Reference in New Issue
Block a user