AP_Arming: text messages and more defines

This commit is contained in:
Andrew Tridgell 2023-04-08 14:27:51 +10:00
parent 20436ef527
commit 4e161bab5e
1 changed files with 2 additions and 2 deletions

View File

@ -1176,9 +1176,9 @@ bool AP_Arming::can_checks(bool report)
case AP_CANManager::Driver_Type_DroneCAN:
{
#if HAL_ENABLE_DRONECAN_DRIVERS
AP_DroneCAN *ap_dronecan = AP_DroneCAN::get_uavcan(i);
AP_DroneCAN *ap_dronecan = AP_DroneCAN::get_dronecan(i);
if (ap_dronecan != nullptr && !ap_dronecan->prearm_check(fail_msg, ARRAY_SIZE(fail_msg))) {
check_failed(ARMING_CHECK_SYSTEM, report, "UAVCAN: %s", fail_msg);
check_failed(ARMING_CHECK_SYSTEM, report, "DroneCAN: %s", fail_msg);
return false;
}
#endif