AP_Arming: fix error unannotated fall-through between switch labels

This commit is contained in:
Siddharth Purohit 2020-03-07 22:03:49 +05:30 committed by Andrew Tridgell
parent 8e3aba5dc5
commit 575ac9224e
1 changed files with 3 additions and 2 deletions

View File

@ -779,8 +779,8 @@ bool AP_Arming::can_checks(bool report)
check_failed(ARMING_CHECK_SYSTEM, report, "%s", fail_msg);
return false;
}
break;
#endif
break;
}
case AP_BoardConfig_CAN::Protocol_Type_PiccoloCAN: {
#if HAL_PICCOLO_CAN_ENABLE
@ -796,11 +796,11 @@ bool AP_Arming::can_checks(bool report)
return false;
}
break;
#else
check_failed(ARMING_CHECK_SYSTEM, report, "PiccoloCAN not enabled");
return false;
#endif
break;
}
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);
return false;
}
break;
}
case AP_BoardConfig_CAN::Protocol_Type_None:
default: