Skip to content

Commit

Permalink
Merge pull request #33 from McSCert/Check-for-locked-models
Browse files Browse the repository at this point in the history
Fixes #32 Unlock or error on locked model
  • Loading branch information
monikajaskolka committed Oct 30, 2020
2 parents 5d0dc60 + cfe215c commit 03178e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/obfuscateModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ function obfuscateModel(sys, parentSys, varargin)
parentSys = [];
end

if strcmp(get_param(sys, 'Lock'), 'on')
error('Model must be unlocked.');
end

%% Manage parameters
% Simulink
% Remove
Expand Down
Binary file modified src/obfuscateModelGUI.mlapp
Binary file not shown.

0 comments on commit 03178e0

Please sign in to comment.