From 237744aeabfb3e9aca709702a68bf6842b5aea3e Mon Sep 17 00:00:00 2001 From: Simon Hancock Date: Sun, 10 Mar 2024 15:33:48 +0000 Subject: [PATCH] mavlogdump: show message when mat_file arg is required --- tools/mavlogdump.py | 4 ++++ 1 file changed, 4 insertions(+) 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