From 49d3bbc1da01b916044e2bf67d4ee2bc7e9e0af3 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Mon, 3 Jul 2017 14:20:07 +0100 Subject: [PATCH] Consistency in factory references --- gpiozero/pins/pigpio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpiozero/pins/pigpio.py b/gpiozero/pins/pigpio.py index b1f9f18..dc46ed3 100644 --- a/gpiozero/pins/pigpio.py +++ b/gpiozero/pins/pigpio.py @@ -163,7 +163,7 @@ class PiGPIOPin(PiPin): def __init__(self, factory, number): super(PiGPIOPin, self).__init__(factory, number) - self._pull = 'up' if factory.pi_info.pulled_up(repr(self)) else 'floating' + self._pull = 'up' if self.factory.pi_info.pulled_up(repr(self)) else 'floating' self._pwm = False self._bounce = None self._callback = None