Skip to content
Snippets Groups Projects
Commit 0fb15802 authored by Tim Stadtmann's avatar Tim Stadtmann
Browse files

Rename Error-mode to Default-mode in utility-functions

parent ef7f50a7
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ function mode = DeviceMode(type, modeNo)
case DeviceType.InfraRed
mode = DeviceMode.InfraRed(modeNo);
otherwise
mode = DeviceMode.Error(0); % Need to think about this...
mode = DeviceMode.Default.Undefined; % Need to think about this...
end
catch
error('MATLAB:RWTHMindstormsEV3:noclass:DeviceMode:invalidInputValue',...
......
......@@ -2,7 +2,7 @@ function isValid = isModeValid(mode, type)
% Returns whether given mode is a valid mode in given type.
isValid = true;
if strcmp(class(mode), 'DeviceMode.Error')
if strcmp(class(mode), 'DeviceMode.Default')
return;
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment