LPC Composer don't send comma at the end of serial port name.
authorLolitech
Fri, 04 Jun 2010 14:59:11 +0200
changeset 556 1ad4e7f1e89e
parent 555 7b08cc1ea55a
child 557 b155ada1c14a
LPC Composer don't send comma at the end of serial port name.
connectors/LPC/LPCObject.py
--- a/connectors/LPC/LPCObject.py	Fri Jun 04 14:58:24 2010 +0200
+++ b/connectors/LPC/LPCObject.py	Fri Jun 04 14:59:11 2010 +0200
@@ -30,7 +30,7 @@
         self.pluginsroot = pluginsroot
         self.PLCprint = pluginsroot.logger.write
         self._Idxs = []
-        comport = int(comportstr[3:comportstr.index(':')]) - 1
+        comport = int(comportstr[3:]) - 1
         try:
             self.connect(comportstr)
         except Exception,e: