mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Arming: fix error unannotated fall-through between switch labels
This commit is contained in:
parent
8e3aba5dc5
commit
575ac9224e
@ -779,8 +779,8 @@ bool AP_Arming::can_checks(bool report)
|
|||||||
check_failed(ARMING_CHECK_SYSTEM, report, "%s", fail_msg);
|
check_failed(ARMING_CHECK_SYSTEM, report, "%s", fail_msg);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
#endif
|
#endif
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
case AP_BoardConfig_CAN::Protocol_Type_PiccoloCAN: {
|
case AP_BoardConfig_CAN::Protocol_Type_PiccoloCAN: {
|
||||||
#if HAL_PICCOLO_CAN_ENABLE
|
#if HAL_PICCOLO_CAN_ENABLE
|
||||||
@ -796,11 +796,11 @@ bool AP_Arming::can_checks(bool report)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
|
||||||
#else
|
#else
|
||||||
check_failed(ARMING_CHECK_SYSTEM, report, "PiccoloCAN not enabled");
|
check_failed(ARMING_CHECK_SYSTEM, report, "PiccoloCAN not enabled");
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
case AP_BoardConfig_CAN::Protocol_Type_UAVCAN:
|
case AP_BoardConfig_CAN::Protocol_Type_UAVCAN:
|
||||||
{
|
{
|
||||||
@ -809,6 +809,7 @@ bool AP_Arming::can_checks(bool report)
|
|||||||
check_failed(ARMING_CHECK_SYSTEM, report, "%s", fail_msg);
|
check_failed(ARMING_CHECK_SYSTEM, report, "%s", fail_msg);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
case AP_BoardConfig_CAN::Protocol_Type_None:
|
case AP_BoardConfig_CAN::Protocol_Type_None:
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user