From 3d468d764f9db27844b9a9575cf20b8ec797ce94 Mon Sep 17 00:00:00 2001 From: Tim Golden Date: Sat, 24 Oct 2015 11:38:01 +0100 Subject: [PATCH] Fix incorrect variable name --- gpiozero/output_devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpiozero/output_devices.py b/gpiozero/output_devices.py index f5ca5ea..7a36033 100644 --- a/gpiozero/output_devices.py +++ b/gpiozero/output_devices.py @@ -368,7 +368,7 @@ class Motor(SourceMixin, CompositeDevice): Generic bi-directional motor. """ def __init__(self, forward=None, backward=None): - if not all([forward, back]): + if not all([forward, backward]): raise OutputDeviceError('forward and back pins must be provided') super(Motor, self).__init__() self._forward = PWMOutputDevice(forward)