mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AC_Fence: remove timeout for waiting on fence semaphore, make nonblocking
Also move where we indicate we've attempted a load.
This commit is contained in:
parent
d0cf3365ee
commit
c787231435
@ -617,13 +617,13 @@ bool AC_PolyFence_loader::load_from_eeprom()
|
||||
return false;
|
||||
}
|
||||
|
||||
_load_attempted = true;
|
||||
|
||||
// find indexes of each fence:
|
||||
if (!get_loaded_fence_semaphore().take(1)) {
|
||||
if (!get_loaded_fence_semaphore().take_nonblocking()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
_load_attempted = true;
|
||||
|
||||
unload();
|
||||
|
||||
if (_eeprom_item_count == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user