diff --git a/ArduCopter/events.cpp b/ArduCopter/events.cpp index 2a56baece3..c64964fc06 100644 --- a/ArduCopter/events.cpp +++ b/ArduCopter/events.cpp @@ -374,14 +374,14 @@ void Copter::do_failsafe_action(Failsafe_Action action, ModeReason reason){ case Failsafe_Action_SmartRTL_Land: set_mode_SmartRTL_or_land_with_pause(reason); break; - case Failsafe_Action_Terminate: + case Failsafe_Action_Terminate: { #if ADVANCED_FAILSAFE == ENABLED - char battery_type_str[17]; - snprintf(battery_type_str, 17, "%s battery", type_str); - g2.afs.gcs_terminate(true, battery_type_str); + g2.afs.gcs_terminate(true, "Failsafe"); #else arming.disarm(); #endif + } + break; } }