diff --git a/tools/mavlogdump.py b/tools/mavlogdump.py index 09909897c..e16cacb66 100755 --- a/tools/mavlogdump.py +++ b/tools/mavlogdump.py @@ -76,6 +76,10 @@ yappi.start() if args.format == 'mat': + # Check that the mat_file argument has been specified + if not args.mat_file: + print("mat_file argument must be specified when mat format is selected") + quit() # Load these modules here, as they're only needed for MAT file creation import scipy.io import numpy as np