AC_Arming: adjust for proximity status namespace change
This commit is contained in:
parent
83b6fdbb04
commit
7b4129ab0d
@ -732,12 +732,12 @@ bool AP_Arming::proximity_checks(bool report) const
|
|||||||
if (proximity == nullptr) {
|
if (proximity == nullptr) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (proximity->get_status() == AP_Proximity::Proximity_NotConnected) {
|
if (proximity->get_status() == AP_Proximity::Status::NotConnected) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// return false if proximity sensor unhealthy
|
// return false if proximity sensor unhealthy
|
||||||
if (proximity->get_status() < AP_Proximity::Proximity_Good) {
|
if (proximity->get_status() < AP_Proximity::Status::Good) {
|
||||||
check_failed(report, "check proximity sensor");
|
check_failed(report, "check proximity sensor");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user