Skip to content

Commit

Permalink
fixup! feat(simu): cross-platform connection of host serial ports to …
Browse files Browse the repository at this point in the history
…simu radio
  • Loading branch information
nrw505 committed Nov 9, 2024
1 parent 8723b64 commit f499d9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion companion/src/simulation/hostserialconnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*/

#include "hostserialconnector.h"
#include <QMessageBox>

HostSerialConnector::HostSerialConnector(QObject *parent, SimulatorInterface *simulator)
: simulator(simulator)
Expand Down Expand Up @@ -166,7 +167,7 @@ void HostSerialConnector::serialStart(const quint8 index)
if (port->open(QIODevice::ReadWrite))
qDebug() << "Opened host serial " << index;
else
qDebug() << "Failed to open host serial " << index << ": " << port->errorString();
QMessageBox::warning(nullptr, tr("Host Serial Error"), port->errorString(), QMessageBox::Cancel, QMessageBox::Cancel);
}

void HostSerialConnector::serialStop(const quint8 index)
Expand Down

0 comments on commit f499d9f

Please sign in to comment.