Skip to content

Commit 48bac77

Browse files
committed
Remove redundant line of code
self._bits is already set in AnalogInputDevice so no need to also set it in MCP3xxx
1 parent 2bced65 commit 48bac77

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

gpiozero/spi_devices.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ class MCP3xxx(AnalogInputDevice):
112112

113113
def __init__(self, channel=0, bits=10, differential=False, **spi_args):
114114
self._channel = channel
115-
self._bits = bits
116115
self._differential = bool(differential)
117116
super(MCP3xxx, self).__init__(bits, **spi_args)
118117

0 commit comments

Comments
 (0)