mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-10 22:59:38 +08:00
ba75b9c35e
Calling serial::write() in quick succession was blowing away the previous buffer, fsync does not guarantee that data is transmitted on serial lines. On the other hand tcdrain waits until the output buffer is empty.