Skip to content

Commit

Permalink
mavflightview.py: increase error threshold for bad colour exporession
Browse files Browse the repository at this point in the history
we probably need something more nuanced than this, but if a message in your expression doesn't exist for a long time in your log the you can end up bombing out here
  • Loading branch information
peterbarker committed Jan 28, 2025
1 parent cb221b4 commit a93da16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MAVProxy/tools/mavflightview.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def colour_for_point(mlog, point, instance, options):
except KeyError:
colour_expression_exceptions[str_e] = 0
count = 0
if count > 100:
if count > 10000:
print("Too many exceptions processing (%s): %s" % (source, str_e))
sys.exit(1)
colour_expression_exceptions[str_e] += 1
Expand Down

0 comments on commit a93da16

Please sign in to comment.