Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4409708

Browse files
committed
Fix bug with bitbang SPI and no MISO pin specified. Bump version up to 0.5.5.
1 parent f60d8c0 commit 4409708

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Adafruit_GPIO/SPI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def read(self, length, assert_ss=True, deassert_ss=True):
208208
line, and if deassert_ss is true the SS line will be put back high.
209209
Bytes which are read will be returned as a bytearray object.
210210
"""
211-
if self._mosi is None:
211+
if self._miso is None:
212212
raise RuntimeError('Read attempted with no MISO pin specified.')
213213
if assert_ss and self._ss is not None:
214214
self._gpio.set_low(self._ss)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages
44

55
setup(name = 'Adafruit_GPIO',
6-
version = '0.5.0',
6+
version = '0.5.5',
77
author = 'Tony DiCola',
88
author_email = '[email protected]',
99
description = 'Library to provide a cross-platform GPIO interface on the Raspberry Pi and Beaglebone Black using the RPi.GPIO and Adafruit_BBIO libraries.',

0 commit comments

Comments
 (0)