hollobon / the-bus-pirate

Automatically exported from code.google.com/p/the-bus-pirate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parameter name mismatch

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. Use python script to set bitbang mode
2. Try to use the raw_set_pins function in BitBang.py
3.

What is the expected output? What do you see instead?
Pins are set.  Pins are not set.

What version of the product are you using? On what operating system?
BitBang.py r168, OS X 10.5.8

Please provide any additional information below.
Line 107 uses the "config" parameter, but the function declaration
specifies the "pins" parameter as such:

106        def raw_set_pins(self, pins):
107                self.port.write(0x80 | config)

Line 171 (function cfg_pins) uses pins in the call to self.port.write().

Original issue reported on code.google.com by petiep...@gmail.com on 22 Dec 2009 at 2:43