From 0fb1580292ade4ee96f450b0e8464cbc5979a13d Mon Sep 17 00:00:00 2001 From: Tim Stadtmann <tim.stadtmann@rwth-aachen.de> Date: Tue, 16 Aug 2016 15:05:25 +0200 Subject: [PATCH] Rename Error-mode to Default-mode in utility-functions --- source/DeviceMode.m | 2 +- source/isModeValid.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/DeviceMode.m b/source/DeviceMode.m index f131a06..146666f 100644 --- a/source/DeviceMode.m +++ b/source/DeviceMode.m @@ -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',... diff --git a/source/isModeValid.m b/source/isModeValid.m index ac5b575..debc72a 100644 --- a/source/isModeValid.m +++ b/source/isModeValid.m @@ -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 -- GitLab