From d001720afab81b1b1a3d00a920af2e7ab8599991 Mon Sep 17 00:00:00 2001
From: Tim Stadtmann <tim.stadtmann@rwth-aachen.de>
Date: Tue, 13 Dec 2016 18:40:09 +0100
Subject: [PATCH] Comment out unnecessary else-case in Motor.m

---
 source/Motor.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/Motor.m b/source/Motor.m
index bc4abd6..fc0de1b 100755
--- a/source/Motor.m
+++ b/source/Motor.m
@@ -699,9 +699,9 @@ classdef Motor < MaskedHandle & dynamicprops
         function set.speedRegulation(motor, speedRegulation)
             if ~isBool(speedRegulation)
                 error('Motor::set.speedRegulation: Given parameter is not a bool.');
-%             elseif motor.connectedToBrick && motor.physicalMotorConnected
+%             elseif motor.connectedToBrick && motor.physicalMotorConnected && ~motor.speedRegulation && speedRegulation 
 %                 pause(0.5);
-%                 if motor.currentSpeed ~= 0
+%                 if motor.isRunning 
 %                     error(['Motor::set.speedRegulation: Cannot change speed regulation while ', ...
 %                         'is motor is moving.']);
 %                 end
-- 
GitLab