Browse Source

Copter: verify land and payload place record flow-of-control internal error

c415-sdk
Randy Mackay 4 years ago
parent
commit
0b83d45163
  1. 4
      ArduCopter/mode_auto.cpp

4
ArduCopter/mode_auto.cpp

@ -1558,7 +1558,7 @@ bool ModeAuto::verify_land() @@ -1558,7 +1558,7 @@ bool ModeAuto::verify_land()
default:
// this should never happen
// TO-DO: log an error
INTERNAL_ERROR(AP_InternalError::error_t::flow_of_control);
retval = true;
break;
}
@ -1720,7 +1720,7 @@ bool ModeAuto::verify_payload_place() @@ -1720,7 +1720,7 @@ bool ModeAuto::verify_payload_place()
return true;
default:
// this should never happen
// TO-DO: log an error
INTERNAL_ERROR(AP_InternalError::error_t::flow_of_control);
return true;
}
// should never get here

Loading…
Cancel
Save