Skip to content

Commit

Permalink
Update SPI port to match the comment (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainpelissier authored and bvernoux committed Dec 14, 2018
1 parent 28d1e7f commit 1437bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/hydra_spi_dump/hydra_spi_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def hydrabus_setup():
error("Cannot set SPI mode, try again or reset hydrabus.")

# Configure SPI port (default polarity and clock phase, SPI1 device)
hydrabus.write(b'\x80')
hydrabus.write(b'\x81')
if b'\x01' not in hydrabus.read(1):
error("Cannot set SPI device settings, try again or reset hydrabus.")

Expand Down

0 comments on commit 1437bff

Please sign in to comment.