Skip to content

Commit

Permalink
Comms: Convert Serial to Signals/Slots
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Aug 2, 2024
1 parent 83ba7f9 commit 5e9ff36
Show file tree
Hide file tree
Showing 4 changed files with 264 additions and 378 deletions.
2 changes: 1 addition & 1 deletion src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void APMAutoPilotPlugin::_checkForBadCubeBlack(void)
// FIXME: Put back
for (const QVariant& varLink: _vehicle->links()) {
SerialLink* serialLink = varLink.value<SerialLink*>();
if (serialLink && QSerialPortInfo(*serialLink->_hackAccessToPort()).description().contains(QStringLiteral("CubeBlack"))) {
if (serialLink && QSerialPortInfo(*serialLink->port()).description().contains(QStringLiteral("CubeBlack"))) {
cubeBlackFound = true;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Comms/LinkManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ void LinkManager::_updateSerialPorts()
{
QString port = info.systemLocation().trimmed();
_commPortList += port;
_commPortDisplayList += SerialConfiguration::cleanPortDisplayname(port);
_commPortDisplayList += SerialConfiguration::cleanPortDisplayName(port);
}
}

Expand Down
Loading

0 comments on commit 5e9ff36

Please sign in to comment.