Fix gvret code to work with single bus adapters (such as Macchina A0), small change to UDP receiver

This commit is contained in:
Collin Kidder
2020-07-15 18:25:31 -04:00
parent db47013f82
commit 1cb0351c86
2 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ ConnectionWindow::ConnectionWindow(QWidget *parent) :
rxBroadcast = new QUdpSocket(this);
//Need to make sure it tries to share the address in case there are
//multiple instances of SavvyCAN running.
rxBroadcast->bind(QHostAddress::AnyIPv4, 17222, QAbstractSocket::ShareAddress);
rxBroadcast->bind(QHostAddress::Any, 17222, QAbstractSocket::ShareAddress);
connect(rxBroadcast, SIGNAL(readyRead()), this, SLOT(readPendingDatagrams()));
@@ -85,7 +85,7 @@ void ConnectionWindow::readPendingDatagrams()
if (!remoteDeviceIP.contains(datagram.senderAddress().toString()))
{
remoteDeviceIP.append(datagram.senderAddress().toString());
//qDebug() << "Add new remote IP " << datagram.senderAddress().toString();
qDebug() << "Add new remote IP " << datagram.senderAddress().toString();
}
}
}