From 6997de2c57486fd95166f1c02ff9a0660416ad22 Mon Sep 17 00:00:00 2001 From: SeongGino Date: Sun, 25 Aug 2024 00:27:01 -0400 Subject: [PATCH] Print device names in more regular strings --- qhookermain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qhookermain.cpp b/qhookermain.cpp index 6b6cb0c..57f2b8f 100644 --- a/qhookermain.cpp +++ b/qhookermain.cpp @@ -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!?"; @@ -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!"; }