From 636a7332717948fee9a10a1d6be185dc50eb9e78 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..55412ce04 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 args.mat_file is None: + 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