Browse Source

Permit firmware to send responses until stdout handle is drained

QGC4.4
Nate Weibley 8 years ago
parent
commit
49fa03ef62
  1. 2
      src/AnalyzeView/MavlinkConsoleController.cc

2
src/AnalyzeView/MavlinkConsoleController.cc

@ -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();

Loading…
Cancel
Save