MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / sendMessagesImpl

Method sendMessagesImpl

OpenHD/ohd_telemetry/src/endpoints/SerialEndpoint.cpp:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80SerialEndpoint::~SerialEndpoint() { stop(); }
81
82bool 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
94bool SerialEndpoint::write_data_serial(const std::vector<uint8_t>& data) {
95 // m_console->debug("Write data serial:{} bytes",data.size());

Callers

nothing calls this directly

Calls 1

aggregate_pack_messagesFunction · 0.85

Tested by

no test coverage detected