mirror of https://github.com/ArduPilot/ardupilot
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:
parent
037e411e35
commit
e31d6d051d
|
@ -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…
Reference in New Issue