From 7e2e2c28fab084429b4e990a49cf0733ff868807 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