| 80 | SerialEndpoint::~SerialEndpoint() { stop(); } |
| 81 | |
| 82 | bool SerialEndpoint::sendMessagesImpl( |
| 83 | const std::vector<MavlinkMessage>& messages) { |
| 84 | auto message_buffers = aggregate_pack_messages(messages); |
| 85 | bool success = true; |
| 86 | for (const auto& message_buffer : message_buffers) { |
| 87 | if (!write_data_serial(*message_buffer.aggregated_data)) { |
| 88 | success = false; |
| 89 | } |
| 90 | } |
| 91 | return success; |
| 92 | } |
| 93 | |
| 94 | bool SerialEndpoint::write_data_serial(const std::vector<uint8_t>& data) { |
| 95 | // m_console->debug("Write data serial:{} bytes",data.size()); |
nothing calls this directly
no test coverage detected