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

Fixes recursive disconnect-call

... that leads to bazillion error messages when there is an unexpected
connection error.
parent 89befd3c
Branches
No related tags found
No related merge requests found
...@@ -491,7 +491,7 @@ classdef EV3 < MaskedHandle ...@@ -491,7 +491,7 @@ classdef EV3 < MaskedHandle
catch ME catch ME
if ~isempty(strfind(ME.identifier, 'CommError')) if ~isempty(strfind(ME.identifier, 'CommError'))
warning('Lost connection to the Brick!'); warning('Lost connection to the Brick!');
ev3.disconnect(); %ev3.disconnect();
else else
warning('Something went wrong. Try to reset the connection.'); warning('Something went wrong. Try to reset the connection.');
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment