From 48bac77d29e2b9048dd328a41de19bccb6ed8b67 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Tue, 24 May 2016 10:25:47 +0100 Subject: [PATCH] Remove redundant line of code self._bits is already set in AnalogInputDevice so no need to also set it in MCP3xxx --- gpiozero/spi_devices.py | 1 - 1 file changed, 1 deletion(-) diff --git a/gpiozero/spi_devices.py b/gpiozero/spi_devices.py index 84cc8cc..78c2a5d 100644 --- a/gpiozero/spi_devices.py +++ b/gpiozero/spi_devices.py @@ -112,7 +112,6 @@ class MCP3xxx(AnalogInputDevice): def __init__(self, channel=0, bits=10, differential=False, **spi_args): self._channel = channel - self._bits = bits self._differential = bool(differential) super(MCP3xxx, self).__init__(bits, **spi_args)