Tracker: simplify should_log (NFC)

This commit is contained in:
Peter Barker 2017-06-09 13:38:39 +10:00 committed by Randy Mackay
parent 7ceafcb469
commit c533bc46a4
1 changed files with 4 additions and 1 deletions

View File

@ -253,7 +253,10 @@ void Tracker::check_usb_mux(void)
*/ */
bool Tracker::should_log(uint32_t mask) bool Tracker::should_log(uint32_t mask)
{ {
if (!(mask & g.log_bitmask) || in_mavlink_delay) { if (in_mavlink_delay) {
return false;
}
if (!(mask & g.log_bitmask)) {
return false; return false;
} }
return true; return true;