mlucia / the-bus-pirate

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

pyBusPirate rawwire mode: a few commands broken #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There are a few errors (mostly typos) in the bitbang modules for pyBusPirate.

* In the pyBusPirate rawwire module, two commands (wire_cfg and 
bulk_clock_tick) aren't converting the integer to char before writing to the 
serial port.

There should be
        self.port.write(chr(0x80 | pins)) 
instead of
        self.port.write(0x80 | pins)
etc.

* The import directive at the top of rawwire.py says "BinBang" instead of 
"BitBang"

* In BitBang.py the parameter to raw_set_pins is called "pins", however, in the 
code it's referenced as "config".

Original issue reported on code.google.com by skuratov...@gmail.com on 1 Aug 2011 at 7:46