Copter: correct compilation under toymode

This commit is contained in:
Peter Barker 2019-07-04 15:23:41 +10:00 committed by Peter Barker
parent a61028c55d
commit ebbd2b971b
1 changed files with 2 additions and 2 deletions

View File

@ -410,7 +410,7 @@ void ToyMode::update()
const uint8_t disarm_limit = copter.flightmode->has_manual_throttle()?TOY_LAND_MANUAL_DISARM_COUNT:TOY_LAND_DISARM_COUNT;
if (throttle_low_counter >= disarm_limit) {
gcs().send_text(MAV_SEVERITY_INFO, "Tmode: throttle disarm");
copter.init_disarm_motors();
copter.arming.disarm();
}
} else {
throttle_low_counter = 0;
@ -569,7 +569,7 @@ void ToyMode::update()
case ACTION_DISARM:
if (copter.motors->armed()) {
gcs().send_text(MAV_SEVERITY_ERROR, "Tmode: Force disarm");
copter.init_disarm_motors();
copter.arming.disarm();
}
break;