mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 15:33:34 +08:00
platforms: Serial new dedicated writeBlocking method (#25537)
* platforms: Serial new dedicated writeBlocking method * finish writeBlocking() * add back fsync * updated posix, added string constant for port not open error * format * fix build * remove fsync * actually remove fsync * remove fsync from write * review feedback --------- Co-authored-by: Jacob Dahl <dahl.jakejacob@gmail.com> Co-authored-by: Jacob Dahl <37091262+dakejahl@users.noreply.github.com>
This commit is contained in:
co-authored by
Jacob Dahl
Jacob Dahl
parent
41d3403ec7
commit
d3f912ad25
@@ -66,6 +66,7 @@ public:
|
||||
ssize_t readAtLeast(uint8_t *buffer, size_t buffer_size, size_t character_count = 1, uint32_t timeout_ms = 0);
|
||||
|
||||
ssize_t write(const void *buffer, size_t buffer_size);
|
||||
ssize_t writeBlocking(const void *buffer, size_t buffer_size, uint32_t timeout_ms = 0);
|
||||
|
||||
void flush();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user