mirror of https://github.com/ArduPilot/ardupilot
AC_Fence: remove pointless sanity check
This commit is contained in:
parent
2bfc26621a
commit
6a241cc3e9
|
@ -418,12 +418,6 @@ void AC_Fence::record_breach(uint8_t fence_type)
|
||||||
/// clear_breach - update breach bitmask, time and count
|
/// clear_breach - update breach bitmask, time and count
|
||||||
void AC_Fence::clear_breach(uint8_t fence_type)
|
void AC_Fence::clear_breach(uint8_t fence_type)
|
||||||
{
|
{
|
||||||
// return immediately if this fence type was not breached
|
|
||||||
if ((_breached_fences & fence_type) == 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// update bitmask
|
|
||||||
_breached_fences &= ~fence_type;
|
_breached_fences &= ~fence_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue