Skip to content

Commit ad595eb

Browse files
committed
Fixed bad continuation
1 parent f53c08a commit ad595eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_ads1x15/analog_in.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ def __init__(self, ads, positive_pin, negative_pin=None):
7171
def value(self):
7272
"""Returns the value of an ADC pin as an integer."""
7373
return self._ads.read(self._pin_setting,
74-
is_differential=self.is_differential) << (16 - self._ads.bits)
74+
is_differential=self.is_differential) <<
75+
(16 - self._ads.bits)
7576

7677
@property
7778
def voltage(self):

0 commit comments

Comments
 (0)