AP_Camera: use new UARTDriver discard_input method

This commit is contained in:
Peter Barker 2020-05-23 10:24:32 +10:00 committed by Andrew Tridgell
parent a073469423
commit d012cf8d47
1 changed files with 1 additions and 4 deletions

View File

@ -748,10 +748,7 @@ void AP_RunCam::drain()
return;
}
uint32_t avail = uart->available();
while (avail-- > 0) {
uart->read();
}
uart->discard_input();
}
// get the device info (firmware version, protocol version and features)