Skip to content

Commit

Permalink
fix channel type check warning in pspm_load_channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Bach committed May 8, 2024
1 parent ff0715d commit 3a6f0ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pspm_load_channel.m
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@
% if channeltype is given, check if channel is of correct type
if nargin > 2
warning('off', 'all');
sts = pspm_select_channels({data_struct}, channeltype);
chantype_sts = pspm_select_channels({data_struct}, channeltype);
warning('on', 'all');
if sts < 1
if chantype_sts < 1
warning('ID:unexpected_channeltype', ...
'Channel type ''%s'' was expected. The retrieved channel is of type ''%s''.', ...
channeltype, data_struct.header.chantype);
Expand Down

0 comments on commit 3a6f0ed

Please sign in to comment.