Skip to content

Commit

Permalink
Print device names in more regular strings
Browse files Browse the repository at this point in the history
  • Loading branch information
SeongGino committed Aug 25, 2024
1 parent dd85ec2 commit 6997de2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qhookermain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void qhookerMain::run()
if(serialPort[i].isOpen()) {
serialPort[i].write("E");
if(serialPort[i].waitForBytesWritten(2000)) {
qInfo() << "Closed port" << i+1;
qInfo() << "Closed port" << i+1 << QString("(%1)").arg(serialPort[i].portName());
serialPort[i].close();
} else {
qInfo() << "Sent close signal to port" << i+1 << ", but wasn't sent in time apparently!?";
Expand Down Expand Up @@ -175,7 +175,7 @@ bool qhookerMain::GameSearching(QString input)
serialPort[portNum].open(QIODevice::WriteOnly);
// Just in case Wendies complains:
serialPort[portNum].setDataTerminalReady(true);
qInfo() << "Opened port no" << portNum+1;
qInfo() << "Opened port no" << portNum+1 << QString("(%1)").arg(serialPort[portNum].portName());
} else {
qWarning() << "Waaaaait a second... Port" << portNum+1 << "is already open!";
}
Expand Down

0 comments on commit 6997de2

Please sign in to comment.