Commit 420fd3ab authored by Lorenz Meier's avatar Lorenz Meier

Ignore vehicle with system ID zero

parent 5eed4cbf
...@@ -84,7 +84,8 @@ void MultiVehicleManager::setToolbox(QGCToolbox *toolbox) ...@@ -84,7 +84,8 @@ void MultiVehicleManager::setToolbox(QGCToolbox *toolbox)
void MultiVehicleManager::_vehicleHeartbeatInfo(LinkInterface* link, int vehicleId, int vehicleMavlinkVersion, int vehicleFirmwareType, int vehicleType) void MultiVehicleManager::_vehicleHeartbeatInfo(LinkInterface* link, int vehicleId, int vehicleMavlinkVersion, int vehicleFirmwareType, int vehicleType)
{ {
if (_ignoreVehicleIds.contains(vehicleId) || getVehicleById(vehicleId)) { if (_ignoreVehicleIds.contains(vehicleId) || getVehicleById(vehicleId)
|| vehicleId == 0) {
return; return;
} }
......
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