diff --git a/src/comm/BluetoothLink.cc b/src/comm/BluetoothLink.cc index 320c4a4140107971afd74a24e289fc31a2acc998..e0120bcf0289283e3960ea702526ac20a10e349d 100644 --- a/src/comm/BluetoothLink.cc +++ b/src/comm/BluetoothLink.cc @@ -78,6 +78,7 @@ void BluetoothLink::_writeBytes(const QByteArray bytes) { if (_targetSocket) { if(_targetSocket->write(bytes) > 0) { + emit bytesSent(this, data); _logOutputDataRate(bytes.size(), QDateTime::currentMSecsSinceEpoch()); } else { qWarning() << "Bluetooth write error"; diff --git a/src/comm/SerialLink.cc b/src/comm/SerialLink.cc index 46e5bfeaf2498636e2fa0d10c729a14655fa4abf..3625ac5eebd3dbec7e0ba5eb91f290ab304c831c 100644 --- a/src/comm/SerialLink.cc +++ b/src/comm/SerialLink.cc @@ -84,6 +84,7 @@ bool SerialLink::_isBootloader() void SerialLink::_writeBytes(const QByteArray data) { if(_port && _port->isOpen()) { + emit bytesSent(this, data); _logOutputDataRate(data.size(), QDateTime::currentMSecsSinceEpoch()); _port->write(data); } else {