Skip to content

Commit 45a5775

Browse files
committed
Wrap lines for PyLint
1 parent c74de29 commit 45a5775

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adafruit_ads1x15/ads1x15.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,16 @@ def _conversion_value(self, raw_adc):
157157

158158
def _read(self, pin):
159159
"""Perform an ADC read. Returns the signed integer result of the read."""
160-
# Immediately return conversion register result if in CONTINUOUS mode and pin has not changed
160+
# Immediately return conversion register result if in CONTINUOUS mode
161+
# and pin has not changed
161162
if self.mode == Mode.CONTINUOUS and self._last_pin_read == pin:
162163
return self._conversion_value(self.get_last_result(True))
163164

164165
# Assign last pin read if in SINGLE mode or first sample in CONTINUOUS mode on this pin
165166
self._last_pin_read = pin
166167

167-
# Configure ADC every time before a conversion in SINGLE mode or changing channels in CONTINUOUS mode
168+
# Configure ADC every time before a conversion in SINGLE mode
169+
# or changing channels in CONTINUOUS mode
168170
if self.mode == Mode.SINGLE:
169171
config = _ADS1X15_CONFIG_OS_SINGLE
170172
else:

0 commit comments

Comments
 (0)