AP_Networking: ensure PPP does not dominate the CPU

This commit is contained in:
Andrew Tridgell 2023-12-26 18:43:20 +11:00
parent 7e29452082
commit 2048631526

View File

@ -39,6 +39,8 @@ uint32_t AP_Networking_PPP::ppp_output_cb(ppp_pcb *pcb, const void *data, uint32
if (n > 0) {
remaining -= n;
ptr += n;
} else {
hal.scheduler->delay_microseconds(100);
}
}
return len;