From 742ea64c831dcdf49bd944768186f4dc9ebb898d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Fri, 13 Feb 2015 11:01:48 +0000 Subject: [PATCH] Reduce debug output. --- socket.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/socket.cpp b/socket.cpp index 4b6df6b..b8d6028 100644 --- a/socket.cpp +++ b/socket.cpp @@ -102,7 +102,6 @@ void Socket::changeSocketName ( QString newName ) stream.setByteOrder(QDataStream::LittleEndian); quint16 length = record.length(); stream << length; - qWarning() << recordLength; datagram[WriteSocketData] = magicKey + QByteArray::fromHex ( "00 a5" ) + commandID[WriteSocketData] + mac + twenties + zeros + QByteArray::fromHex ( "04:00:01" ) /*table number and unknown*/ + recordLength + record; sendDatagram ( WriteSocketData ); @@ -144,7 +143,6 @@ bool Socket::parseReply ( QByteArray reply ) return false; } } - std::cout << reply.toHex().toStdString() << " " << datagram << std::endl; // for debugging purposes only switch ( datagram ) { case Subscribe: @@ -170,6 +168,7 @@ bool Socket::parseReply ( QByteArray reply ) break; case SocketData: { + std::cout << reply.toHex().toStdString() << " " << datagram << std::endl; // for debugging purposes only unsigned short int index = reply.indexOf ( rmac + twenties ); versionID = reply.mid ( index - 14, 2 ); index += 12; // length of rmac + padding