Commit 006c4528 authored by Don Gagne's avatar Don Gagne

Merge pull request #1633 from dogmaphobic/px4ID

Adding check for a PX4.
parents 06ae441e 1c9590fe
......@@ -481,10 +481,13 @@ void LinkManager::_updateConfigurationList(void)
}
} else {
// Lets create a new Serial configuration automatically
if (portInfo.description() == "AeroCore")
pSerial = new SerialConfiguration(QString("AeroCore on %1").arg(portInfo.portName().trimmed()));
else
pSerial = new SerialConfiguration(QString("Pixhawk on %1").arg(portInfo.portName().trimmed()));
if (portInfo.description() == "AeroCore") {
pSerial = new SerialConfiguration(QString("AeroCore on %1").arg(portInfo.portName().trimmed()));
} else if (portInfo.description().contains("PX4")) {
pSerial = new SerialConfiguration(QString("Pixhawk on %1").arg(portInfo.portName().trimmed()));
} else {
continue;
}
pSerial->setDynamic(true);
pSerial->setPreferred(true);
pSerial->setBaud(115200);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment