From c0d88e79e2807a5640bc02ebf9742c2ab3a10d1c Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Thu, 30 Oct 2014 12:03:09 -0700 Subject: [PATCH] Fix wrong type --- src/ui/QGCPX4VehicleConfig.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/QGCPX4VehicleConfig.cc b/src/ui/QGCPX4VehicleConfig.cc index 08337c1ecf..e57d61d2b5 100644 --- a/src/ui/QGCPX4VehicleConfig.cc +++ b/src/ui/QGCPX4VehicleConfig.cc @@ -271,7 +271,7 @@ void QGCPX4VehicleConfig::setActiveUAS(UASInterface* active) // Since a system is now connected, enable the VehicleConfig UI. // Enable buttons - bool px4Firmware = mav->getAutopilotType() == MAV_AUTOPILOT_PIXHAWK; + bool px4Firmware = mav->getAutopilotType() == MAV_AUTOPILOT_PX4; ui->airframeMenuButton->setEnabled(px4Firmware); ui->sensorMenuButton->setEnabled(px4Firmware); ui->rcMenuButton->setEnabled(px4Firmware); -- GitLab