Commits

Jason R. Coombs committed 18ad9d4

Now requires pyserial 2.4 or later.
Added a writeTimeout to the device discovery (serial).

Comments (0)

Files changed (3)

 ~~~~~
 
 * Fixed issue in discovery when PyBluez is not installed.
+* Added a writeTimeout to the device discovery.
+* Now requires pyserial 2.4 or later.
 
 1.3.2
 ~~~~~

jaraco/nxt/__init__.py

 		for serial_port in range(10):
 			log.debug('Attempting to connect to serial port %d', serial_port)
 			try:
-				yield Connection(serial_port)
-			except IOError:
+				yield Connection(serial_port, writeTimeout=1)
+			except serial.SerialException:
 				pass
 
 locator = Locator()
 		],
 	),
 	install_requires=[
-		'pyserial>=2.2',
+		'pyserial>=2.4',
 	],
 	extras_require = {
 		'input': 'jaraco.input>=1.1dev',