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

Comment out unnecessary else-case in Motor.m

parent 1250413e
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment