Reduce debug output.

This commit is contained in:
Andrius Štikonas 2015-02-13 11:01:48 +00:00
parent 389f203c8e
commit 742ea64c83
1 changed files with 1 additions and 2 deletions

View File

@ -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