5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-06 16:08:28 -04:00

AP_OpenDroneID: fixed mavlink enum

This commit is contained in:
Andrew Tridgell 2023-03-07 08:57:21 +11:00 committed by Randy Mackay
parent 3616b41afc
commit 4ca0a0a997

View File

@ -133,7 +133,7 @@ bool AP_OpenDroneID::pre_arm_check(char* failmsg, uint8_t failmsg_len)
return false; return false;
} }
if (arm_status.status != MAV_ODID_GOOD_TO_ARM) { if (arm_status.status != MAV_ODID_ARM_STATUS_GOOD_TO_ARM) {
strncpy(failmsg, arm_status.error, failmsg_len); strncpy(failmsg, arm_status.error, failmsg_len);
return false; return false;
} }