mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
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;
|
return MAV_TYPE_COAXIAL;
|
||||||
case AP_Motors::MOTOR_FRAME_UNDEFINED:
|
case AP_Motors::MOTOR_FRAME_UNDEFINED:
|
||||||
default:
|
default:
|
||||||
return MAV_TYPE_GENERIC;
|
break;
|
||||||
}
|
}
|
||||||
// we should never get this far
|
// unknown frame so return generic
|
||||||
return MAV_TYPE_GENERIC;
|
return MAV_TYPE_GENERIC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user