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
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ bool AP_OpenDroneID::pre_arm_check(char* failmsg, uint8_t failmsg_len)
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);
return false;
}