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:
Peter Barker 2020-11-10 13:36:41 +11:00 committed by Randy Mackay
parent d0cf3365ee
commit c787231435

View File

@ -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) {