Browse Source

Fix BluetoothLink::writeBytes reference to size

QGC4.4
Nate Weibley 9 years ago
parent
commit
a2a203530e
  1. 2
      src/comm/BluetoothLink.cc

2
src/comm/BluetoothLink.cc

@ -96,7 +96,7 @@ void BluetoothLink::writeBytes(const QByteArray bytes) @@ -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";

Loading…
Cancel
Save