Browse Source

AP_Arming: fix error unannotated fall-through between switch labels

c415-sdk
Siddharth Purohit 5 years ago committed by Andrew Tridgell
parent
commit
575ac9224e
  1. 5
      libraries/AP_Arming/AP_Arming.cpp

5
libraries/AP_Arming/AP_Arming.cpp

@ -779,8 +779,8 @@ bool AP_Arming::can_checks(bool report) @@ -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) @@ -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) @@ -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:

Loading…
Cancel
Save