mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 15:17:35 +08:00
serial: add txSpaceAvailable function (#26069)
* serial: add txSpaceAvailable function * serial: txSpaceAvailable and bytesAvailable fixups
This commit is contained in:
@@ -74,6 +74,11 @@ ssize_t Serial::bytesAvailable()
|
||||
return _impl.bytesAvailable();
|
||||
}
|
||||
|
||||
ssize_t Serial::txSpaceAvailable()
|
||||
{
|
||||
return _impl.txSpaceAvailable();
|
||||
}
|
||||
|
||||
ssize_t Serial::read(uint8_t *buffer, size_t buffer_size)
|
||||
{
|
||||
return _impl.read(buffer, buffer_size);
|
||||
|
||||
Reference in New Issue
Block a user