Remove redundant line of code

self._bits is already set in AnalogInputDevice so no need to also set it in MCP3xxx
This commit is contained in:
Andrew Scheller
2016-05-24 10:25:47 +01:00
parent 2bced655c8
commit 48bac77d29

View File

@@ -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)