mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
Tracker: simplify should_log (NFC)
This commit is contained in:
parent
c5d40fd8b4
commit
332e5059e2
@ -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