Skip to content

Commit 67261e4

Browse files
committed
Typo in SPISoftwareBus._shared_key
It's a @classmethod, so the first parameter is cls not self
1 parent 7e6cc39 commit 67261e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gpiozero/spi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def closed(self):
163163
return self.lock is None
164164

165165
@classmethod
166-
def _shared_key(self, clock_pin, mosi_pin, miso_pin):
166+
def _shared_key(cls, clock_pin, mosi_pin, miso_pin):
167167
return (clock_pin, mosi_pin, miso_pin)
168168

169169
def read(self, n):

0 commit comments

Comments
 (0)