mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +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
|
return self.lock is None
|
||||||
|
|
||||||
@classmethod
|
@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)
|
return (clock_pin, mosi_pin, miso_pin)
|
||||||
|
|
||||||
def read(self, n):
|
def read(self, n):
|
||||||
|
|||||||
Reference in New Issue
Block a user