Fixed syntax error that arose from fixing a line that was too long
This commit is contained in:
parent
ad595ebcf2
commit
50061b7c9d
1 changed files with 2 additions and 3 deletions
|
|
@ -70,9 +70,8 @@ class AnalogIn():
|
|||
@property
|
||||
def value(self):
|
||||
"""Returns the value of an ADC pin as an integer."""
|
||||
return self._ads.read(self._pin_setting,
|
||||
is_differential=self.is_differential) <<
|
||||
(16 - self._ads.bits)
|
||||
return self._ads.read(self._pin_setting,
|
||||
is_differential=self.is_differential) << (16 - self._ads.bits)
|
||||
|
||||
@property
|
||||
def voltage(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue