Commit d967a81a authored by Gus Grubba's avatar Gus Grubba Committed by GitHub

Merge pull request #4466 from bkueng/fix_mavlink_log

MAVLinkLogManager: fix use of wrong variable
parents f1b82fb9 a206a372
......@@ -836,7 +836,7 @@ MAVLinkLogManager::_activeVehicleChanged(Vehicle* vehicle)
emit canStartLogChanged();
}
// Connect new system
if(_vehicle && _vehicle->px4Firmware()) {
if(vehicle && vehicle->px4Firmware()) {
_vehicle = vehicle;
connect(_vehicle, &Vehicle::armedChanged, this, &MAVLinkLogManager::_armedChanged);
connect(_vehicle, &Vehicle::mavlinkLogData, this, &MAVLinkLogManager::_mavlinkLogData);
......
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