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
This commit is contained in:
Randy Mackay 2016-12-15 10:47:58 +09:00
parent 037e411e35
commit e31d6d051d
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}