diff --git a/src/comm/BluetoothLink.cc b/src/comm/BluetoothLink.cc index f1645e2..5062d12 100644 --- a/src/comm/BluetoothLink.cc +++ b/src/comm/BluetoothLink.cc @@ -96,7 +96,7 @@ void BluetoothLink::writeBytes(const QByteArray bytes) if(_targetSocket->isWritable()) { if(_targetSocket->write(bytes) > 0) { - _logOutputDataRate(size, QDateTime::currentMSecsSinceEpoch()); + _logOutputDataRate(bytes.size(), QDateTime::currentMSecsSinceEpoch()); } else qWarning() << "Bluetooth write error";