Rover: remove handling of prearm empty-string case

it is clear by inspection that this string can never be empty when the called function returns false.  AP_OAPathPlanner::pre_arm_check is not that complicated!
This commit is contained in:
Peter Barker 2024-09-22 11:35:58 +10:00 committed by Randy Mackay
parent c5964ecd35
commit 34b775259f
1 changed files with 1 additions and 6 deletions

View File

@ -168,12 +168,7 @@ bool AP_Arming_Rover::oa_check(bool report)
return true; return true;
} }
// display failure check_failed(report, "%s", failure_msg);
if (strlen(failure_msg) == 0) {
check_failed(report, "Check Object Avoidance");
} else {
check_failed(report, "%s", failure_msg);
}
return false; return false;
} }
#endif // AP_OAPATHPLANNER_ENABLED #endif // AP_OAPATHPLANNER_ENABLED