mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 11:48:53 +08:00
platform: serial: add bytesAvailable() function
This commit is contained in:
@@ -69,6 +69,11 @@ bool Serial::close()
|
||||
return _impl.close();
|
||||
}
|
||||
|
||||
ssize_t Serial::bytesAvailable()
|
||||
{
|
||||
return _impl.bytesAvailable();
|
||||
}
|
||||
|
||||
ssize_t Serial::read(uint8_t *buffer, size_t buffer_size)
|
||||
{
|
||||
return _impl.read(buffer, buffer_size);
|
||||
|
||||
Reference in New Issue
Block a user