From 5d626c4d03ece8b03ca14d0123445a1abf0cb679 Mon Sep 17 00:00:00 2001 From: Pablo Romero Date: Wed, 1 May 2024 09:06:41 +0200 Subject: [PATCH] Error out if user does not select any firmware file. --- toolbox/src/bossdevice.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/toolbox/src/bossdevice.m b/toolbox/src/bossdevice.m index 7186f9c..b4703cf 100644 --- a/toolbox/src/bossdevice.m +++ b/toolbox/src/bossdevice.m @@ -176,8 +176,7 @@ function initOscillationProps(obj) [filename, filepath] = uigetfile([obj.appName,'.mldatx'],... 'Select the firmware binary to load on the bossdevice'); if isequal(filename,0) - disp('User selected Cancel. Please select firmware mldatx file to complete bossdevice dependencies.'); - return; + error('User selected Cancel. Please select firmware mldatx file to complete bossdevice dependencies.'); else obj.firmwareFilepath = fullfile(filepath,filename); end