Explorar el Código

fix selecting false ergometer

Kenneth van Ewijk hace 10 años
padre
commit
5e01940e56
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ErgometerIPR/ErgometerApplication/MainClient.cs

+ 1 - 1
ErgometerIPR/ErgometerApplication/MainClient.cs

@@ -81,7 +81,7 @@ namespace ErgometerApplication
                 {
                     ComPort.Write("RS");
                     string temp = ComPort.Read();
-                    if (temp == "err")
+                    if (temp.ToLower() != "ack")
                     {
                         ComPort.Disconnect();
                         error = "De Ergometer is niet verbonden";