Browse Source

Copter: get_frame_mav_type switch fix

This returns generic as the mavtype and avoids warnings of unreachable code
Thanks to muramura for suggesting this
master
Randy Mackay 8 years ago
parent
commit
e31d6d051d
  1. 4
      ArduCopter/system.cpp

4
ArduCopter/system.cpp

@ -511,9 +511,9 @@ uint8_t Copter::get_frame_mav_type() @@ -511,9 +511,9 @@ uint8_t Copter::get_frame_mav_type()
return MAV_TYPE_COAXIAL;
case AP_Motors::MOTOR_FRAME_UNDEFINED:
default:
return MAV_TYPE_GENERIC;
break;
}
// we should never get this far
// unknown frame so return generic
return MAV_TYPE_GENERIC;
}

Loading…
Cancel
Save