summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qtserialbluetooth.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/qtserialbluetooth.cpp b/qtserialbluetooth.cpp
index 6f93d8cab..6a3360c7d 100644
--- a/qtserialbluetooth.cpp
+++ b/qtserialbluetooth.cpp
@@ -236,8 +236,6 @@ static int qt_serial_read(serial_t *device, void* data, unsigned int size)
while(nbytes < size && device->socket->state() == QBluetoothSocket::ConnectedState)
{
- device->socket->waitForReadyRead(device->timeout);
-
rc = device->socket->read((char *) data + nbytes, size - nbytes);
if (rc < 0) {
@@ -295,8 +293,6 @@ static int qt_serial_write(serial_t *device, const void* data, unsigned int size
while(nbytes < size && device->socket->state() == QBluetoothSocket::ConnectedState)
{
- device->socket->waitForBytesWritten(device->timeout);
-
rc = device->socket->write((char *) data + nbytes, size - nbytes);
if (rc < 0) {