Tracker: simplify should_log (NFC)

This commit is contained in:
Peter Barker 2017-06-09 13:38:39 +10:00 committed by Francisco Ferreira
parent c5d40fd8b4
commit 332e5059e2
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)
{
if (!(mask & g.log_bitmask) || in_mavlink_delay) {
if (in_mavlink_delay) {
return false;
}
if (!(mask & g.log_bitmask)) {
return false;
}
return true;