From 67261e44b2cf675678e6174fce96df09e7e28920 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Mon, 2 May 2016 19:53:33 +0100 Subject: [PATCH] Typo in SPISoftwareBus._shared_key It's a @classmethod, so the first parameter is cls not self --- gpiozero/spi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpiozero/spi.py b/gpiozero/spi.py index 9a4e712..85352df 100644 --- a/gpiozero/spi.py +++ b/gpiozero/spi.py @@ -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):