Copter: correct compilation for ERROR_SUBSYSTEM_FLIGHT_MODE changing names

This commit is contained in:
Peter Barker 2019-03-27 13:19:07 +11:00
parent 706a75ad03
commit 7e01d1ef50

View File

@ -211,7 +211,7 @@ bool Copter::set_mode(control_mode_t mode, mode_reason_t reason)
!copter.flightmode->has_manual_throttle() && !copter.flightmode->has_manual_throttle() &&
new_flightmode->get_pilot_desired_throttle() > copter.get_non_takeoff_throttle()) { new_flightmode->get_pilot_desired_throttle() > copter.get_non_takeoff_throttle()) {
gcs().send_text(MAV_SEVERITY_WARNING, "Mode change failed: throttle too high"); gcs().send_text(MAV_SEVERITY_WARNING, "Mode change failed: throttle too high");
Log_Write_Error(ERROR_SUBSYSTEM_FLIGHT_MODE,mode); AP::logger().Write_Error(LogErrorSubsystem::FLIGHT_MODE, LogErrorCode(mode));
return false; return false;
} }
#endif #endif