This commit is contained in:
Ben Nuttall
2015-10-05 12:08:55 +01:00
parent 18985b0d47
commit 82319ba672

View File

@@ -57,7 +57,8 @@ class GPIODevice(object):
with _GPIO_PINS_LOCK:
if pin in _GPIO_PINS:
raise GPIODeviceError(
'pin %d is already in use by another gpiozero object' % pin)
'pin %d is already in use by another gpiozero object' % pin
)
_GPIO_PINS.add(pin)
self._pin = pin
self._active_state = GPIO.HIGH