mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Arming: added arming check for fence storage
This commit is contained in:
parent
0e6a32a3e2
commit
9a092e4e3a
@ -1244,6 +1244,13 @@ bool AP_Arming::fence_checks(bool display_failure)
|
|||||||
check_failed(display_failure, "%s", fail_msg);
|
check_failed(display_failure, "%s", fail_msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if AP_SDCARD_STORAGE_ENABLED
|
||||||
|
if (fence->failed_sdcard_storage() || StorageManager::storage_failed()) {
|
||||||
|
check_failed(display_failure, "Failed to open fence storage");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif // AP_FENCE_ENABLED
|
#endif // AP_FENCE_ENABLED
|
||||||
|
Loading…
Reference in New Issue
Block a user