Commits

Tino de Bruijn committed a09fe5d

Fixed bug with the Arduino and ArduinoMega subclasses

Comments (0)

Files changed (1)

pyfirmata/__init__.py

     """
     A board that wil set itself up as a normal Arduino.
     """
-    def __init__(*args, **kwargs):
+    def __init__(self, *args, **kwargs):
+        args = list(args)
         args.append(BOARDS['arduino'])
         super(Arduino, self).__init__(*args, **kwargs)
         
     """
     A board that wil set itself up as an Arduino Mega.
     """
-    def __init__(*args, **kwargs):
+    def __init__(self, *args, **kwargs):
+        args = list(args)
         args.append(BOARDS['arduino_mega'])
         super(Arduino, self).__init__(*args, **kwargs)