Source

pyFirmata_nickraptis_mq / GetBoardBug.diff

Full commit
# HG changeset patch
# Parent cc2fbead01b6384500b380c6bfd34a0a2154024b
Pass parameters to Boards.

Previously, all user-passed parameters were discarded.

diff -r cc2fbead01b6 -r 651f06a045e5 pyfirmata/util.py
--- a/pyfirmata/util.py	Mon May 16 23:01:17 2011 +0300
+++ b/pyfirmata/util.py	Mon May 16 23:04:43 2011 +0300
@@ -81,7 +81,7 @@
     will raise an IOError if it can't find a board, on a serial, or if it
     finds more than one.
     """
-    boards = Boards(base_dir='/dev/', identifier='tty.usbserial')
+    boards = Boards(base_dir=base_dir, identifier=identifier)
     if len(boards) == 0:
         raise IOError, "No boards found in %s with identifier %s" % (base_dir, identifier)
     elif len(boards) > 1: