Skip to content

Commit 50061b7

Browse files
committed
Fixed syntax error that arose from fixing a line that was too long
1 parent ad595eb commit 50061b7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adafruit_ads1x15/analog_in.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ def __init__(self, ads, positive_pin, negative_pin=None):
7070
@property
7171
def value(self):
7272
"""Returns the value of an ADC pin as an integer."""
73-
return self._ads.read(self._pin_setting,
74-
is_differential=self.is_differential) <<
75-
(16 - self._ads.bits)
73+
return self._ads.read(self._pin_setting,
74+
is_differential=self.is_differential) << (16 - self._ads.bits)
7675

7776
@property
7877
def voltage(self):

0 commit comments

Comments
 (0)