Commit 7ce7777f authored by auke.klazema's avatar auke.klazema
Browse files

renamed parameters

parent 4a2e6c82
......@@ -57,15 +57,15 @@ class PrologixGpibUsb(PortDevice):
if not self._rematch:
raise ValueError(port)
def _find_available_port(self, maxDeviceNum, port, portFormat, timeout, verbose):
while int( < maxDeviceNum:
def _find_available_port(self, max_device_num, port, port_format, timeout, verbose):
while int( < max_device_num:
if verbose:
print "trying ", port
self._serialPort = serial.Serial(port, timeout=timeout)
except serial.SerialException:
port = + (portFormat % (int( + 1))
port = + (port_format % (int( + 1))
self._rematch ="(/dev/tty.*[^0-9])([0-9]+$)", port)
if self._serialPort is None:
raise serial.SerialException("Cannot find port")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment