From 5eb818f77e540259ae96274ec28b6195cbb931a9 Mon Sep 17 00:00:00 2001
From: Maximilian Schnabel <maximilian.schnabel@rwth-aachen.de>
Date: Mon, 2 Mar 2020 15:20:03 +0100
Subject: [PATCH] disabled warning when calling connect() with an already
 established connection, because of unnecessary confusion

---
 source/EV3.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/source/EV3.m b/source/EV3.m
index d6e62bc..b5d920a 100644
--- a/source/EV3.m
+++ b/source/EV3.m
@@ -170,7 +170,9 @@ classdef EV3 < MaskedHandle
 
             if ev3.isConnected
                 if isCommInterfaceValid(ev3.commInterface)
-                    warning('EV3::connect: Already connected. Resetting connection now...');
+                    % Warning lead to confusion of students. Since brick connection is still working
+		            % even if calling connect() multiple times, it is disabled. 
+		            % warning('EV3::connect: Already connected. Resetting connection now...');
                     ev3.disconnect();
                 else
                     warning(['EV3::connect: EV3.isConnected is set to ''True'', but ',...
-- 
GitLab