Commit 12a4359d authored by Lorenz Meier's avatar Lorenz Meier

Shorten the set mode retries to get feedback to the user faster

parent 19bffaa8
...@@ -485,7 +485,7 @@ bool FirmwarePlugin::_setFlightModeAndValidate(Vehicle* vehicle, const QString& ...@@ -485,7 +485,7 @@ bool FirmwarePlugin::_setFlightModeAndValidate(Vehicle* vehicle, const QString&
vehicle->setFlightMode(flightMode); vehicle->setFlightMode(flightMode);
// Wait for vehicle to return flight mode // Wait for vehicle to return flight mode
for (int i=0; i<22; i++) { for (int i=0; i<13; i++) {
if (vehicle->flightMode() == flightMode) { if (vehicle->flightMode() == flightMode) {
flightModeChanged = true; flightModeChanged = true;
break; break;
......
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