Skip to content

Commit 5d626c4

Browse files
authored
Error out if user does not select any firmware file.
1 parent b9cd1dd commit 5d626c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

toolbox/src/bossdevice.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ function initOscillationProps(obj)
176176
[filename, filepath] = uigetfile([obj.appName,'.mldatx'],...
177177
'Select the firmware binary to load on the bossdevice');
178178
if isequal(filename,0)
179-
disp('User selected Cancel. Please select firmware mldatx file to complete bossdevice dependencies.');
180-
return;
179+
error('User selected Cancel. Please select firmware mldatx file to complete bossdevice dependencies.');
181180
else
182181
obj.firmwareFilepath = fullfile(filepath,filename);
183182
end

0 commit comments

Comments
 (0)