diff --git a/src/ui/QGCPX4VehicleConfig.cc b/src/ui/QGCPX4VehicleConfig.cc index 08337c1ecf053de4d3b1b7b405dad27dae96e61c..e57d61d2b55096fdbdf309790bb4dc32dd49322b 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);