mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-15 18:50:35 +08:00
4b01e5b6b6
Instead of printing to an fd, this prints to a buffer and calls a callback for each line. To avoid code duplication, the print_load has been refactored to print to a buffer first, then print to an fd. The overhead is not noticable, and the behavior of print_load is unchanged.