Skip to content

Commit

Permalink
VER messages should not be affected by --condition nor --reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas authored and peterbarker committed Jan 24, 2024
1 parent bec27ba commit e2a7e74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/mavlogdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def reduce_rate_msg(m, reduction_rate):
'''return True if this msg should be discarded by reduction'''
global last_msg_rate_t
mtype = m.get_type()
if mtype in ['PARM','MSG','FMT','FMTU','MULT','MODE','EVT','UNIT']:
if mtype in ['PARM','MSG','FMT','FMTU','MULT','MODE','EVT','UNIT', 'VER']:
return False
t = getattr(m,'_timestamp',None)
if t is None:
Expand Down Expand Up @@ -258,7 +258,7 @@ def match_type(mtype, patterns):
continue

if not mavutil.evaluate_condition(args.condition, mlog.messages) and (
not (m_type in ['FMT', 'FMTU', 'MULT', 'PARM', 'MODE', 'UNIT'] and args.meta)):
not (m_type in ['FMT', 'FMTU', 'MULT', 'PARM', 'MODE', 'UNIT', 'VER'] and args.meta)):
continue
if args.source_system is not None and args.source_system != m.get_srcSystem():
continue
Expand Down

0 comments on commit e2a7e74

Please sign in to comment.