mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
Tracker: simplify should_log (NFC)
This commit is contained in:
parent
7ceafcb469
commit
c533bc46a4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user