|
|
|
@ -87,7 +87,7 @@ MavlinkConsoleController::_sendSerialData(QByteArray data, bool close)
@@ -87,7 +87,7 @@ MavlinkConsoleController::_sendSerialData(QByteArray data, bool close)
|
|
|
|
|
// Send maximum sized chunks until the complete buffer is transmitted
|
|
|
|
|
while(data.size()) { |
|
|
|
|
QByteArray chunk{data.left(MAVLINK_MSG_SERIAL_CONTROL_FIELD_DATA_LEN)}; |
|
|
|
|
uint8_t flags = SERIAL_CONTROL_FLAG_EXCLUSIVE | SERIAL_CONTROL_FLAG_RESPOND; |
|
|
|
|
uint8_t flags = SERIAL_CONTROL_FLAG_EXCLUSIVE | SERIAL_CONTROL_FLAG_RESPOND | SERIAL_CONTROL_FLAG_MULTI; |
|
|
|
|
if (close) flags = 0; |
|
|
|
|
auto protocol = qgcApp()->toolbox()->mavlinkProtocol(); |
|
|
|
|
auto priority_link = _vehicle->priorityLink(); |
|
|
|
|