Skip to content

Commit

Permalink
fixed spi del bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Preston committed Oct 10, 2013
1 parent c149929 commit fde320d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pifacecommon/spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def __init__(self, bus=0, chip_select=0, spi_callback=None):
self.bus = bus
self.chip_select = chip_select
self.spi_callback = spi_callback
self.fd = None
spi_device = "%s%d.%d" % (SPIDEV, self.bus, self.chip_select)
self.open_fd(spi_device)

Expand Down

0 comments on commit fde320d

Please sign in to comment.