Skip to content

Commit

Permalink
core: fix is_server_armed check
Browse files Browse the repository at this point in the history
Found by AppleClang.
  • Loading branch information
julianoes committed Aug 5, 2021
1 parent 38033e7 commit fbaef9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/system_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,7 @@ void SystemImpl::set_server_armed(bool armed)

bool SystemImpl::is_server_armed() const
{
return _parent.get_base_mode() & (MAV_MODE_FLAG_SAFETY_ARMED == MAV_MODE_FLAG_SAFETY_ARMED);
return (_parent.get_base_mode() & MAV_MODE_FLAG_SAFETY_ARMED) == MAV_MODE_FLAG_SAFETY_ARMED;
}

void SystemImpl::set_custom_mode(uint32_t custom_mode)
Expand Down

0 comments on commit fbaef9c

Please sign in to comment.