mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Typo in SPISoftwareBus._shared_key
It's a @classmethod, so the first parameter is cls not self
This commit is contained in:
@@ -163,7 +163,7 @@ class SPISoftwareBus(SharedMixin, Device):
|
||||
return self.lock is None
|
||||
|
||||
@classmethod
|
||||
def _shared_key(self, clock_pin, mosi_pin, miso_pin):
|
||||
def _shared_key(cls, clock_pin, mosi_pin, miso_pin):
|
||||
return (clock_pin, mosi_pin, miso_pin)
|
||||
|
||||
def read(self, n):
|
||||
|
||||
Reference in New Issue
Block a user