platform: serial: add bytesAvailable() function

This commit is contained in:
Jacob Dahl
2025-07-29 09:07:03 -08:00
committed by Jacob Dahl
parent 61e741e7d0
commit b5bf28c204
8 changed files with 40 additions and 0 deletions
+7
View File
@@ -158,6 +158,13 @@ bool SerialImpl::close()
return true;
}
ssize_t SerialImpl::bytesAvailable()
{
// TODO:
PX4_WARN("bytesAvailable not implemented!");
return 0;
}
ssize_t SerialImpl::read(uint8_t *buffer, size_t buffer_size)
{
if (!_open) {