Copter: remove duplicate logging of mavlink parachute enable/disable

This commit is contained in:
Peter Barker 2022-05-06 11:22:16 +10:00 committed by Randy Mackay
parent 6201fd3cf0
commit fdb971fc0b
1 changed files with 0 additions and 2 deletions

View File

@ -856,11 +856,9 @@ MAV_RESULT GCS_MAVLINK_Copter::handle_command_long_packet(const mavlink_command_
switch ((uint16_t)packet.param1) {
case PARACHUTE_DISABLE:
copter.parachute.enabled(false);
AP::logger().Write_Event(LogEvent::PARACHUTE_DISABLED);
return MAV_RESULT_ACCEPTED;
case PARACHUTE_ENABLE:
copter.parachute.enabled(true);
AP::logger().Write_Event(LogEvent::PARACHUTE_ENABLED);
return MAV_RESULT_ACCEPTED;
case PARACHUTE_RELEASE:
// treat as a manual release which performs some additional check of altitude