Skip to content

Commit

Permalink
Fixed argument parsing issue in handling 1 input argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
firefirefirefirefire committed Feb 10, 2024
1 parent 7f88675 commit 8882da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crc16.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

% Validate inputs
narginchk(0,2);
if nargin == 0 || ~isa(cfgin,'struct')
if nargin == 0 || (nargin == 2 && ~isa(cfgin,'struct'))
crc = zeros(0,1);
cfg = struct();
crctable = [];
Expand Down

0 comments on commit 8882da9

Please sign in to comment.