Skip to content

Commit

Permalink
Error out if user does not select any firmware file.
Browse files Browse the repository at this point in the history
  • Loading branch information
pablorcum authored May 1, 2024
1 parent b9cd1dd commit 5d626c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions toolbox/src/bossdevice.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d626c4

Please sign in to comment.