nahidalam / the-bus-pirate

Automatically exported from code.google.com/p/the-bus-pirate
Other
0 stars 1 forks source link

parameter name mismatch #47

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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