Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
Fix for support the raspberrypi kernel change on spi-max-frequency (see
Browse files Browse the repository at this point in the history
raspberrypi/linux#2165 and piface/pifacecad/issues/24#issuecomment-340642247) since kernel 4.9.43
  • Loading branch information
DanielChesters committed Nov 1, 2017
1 parent 546b0b1 commit b54d84e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pifacecommon/spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def spisend(self, bytes_to_send):
transfer = spi_ioc_transfer(
tx_buf=ctypes.addressof(wbuffer),
rx_buf=ctypes.addressof(rbuffer),
len=ctypes.sizeof(wbuffer)
len=ctypes.sizeof(wbuffer),
speed_hz=ctypes.c_uint32(100000)
)

if self.spi_callback is not None:
Expand Down

0 comments on commit b54d84e

Please sign in to comment.