We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f28460d commit c74de29Copy full SHA for c74de29
adafruit_ads1x15/ads1x15.py
@@ -160,10 +160,10 @@ def _read(self, pin):
160
# Immediately return conversion register result if in CONTINUOUS mode and pin has not changed
161
if self.mode == Mode.CONTINUOUS and self._last_pin_read == pin:
162
return self._conversion_value(self.get_last_result(True))
163
-
+
164
# Assign last pin read if in SINGLE mode or first sample in CONTINUOUS mode on this pin
165
self._last_pin_read = pin
166
167
# Configure ADC every time before a conversion in SINGLE mode or changing channels in CONTINUOUS mode
168
if self.mode == Mode.SINGLE:
169
config = _ADS1X15_CONFIG_OS_SINGLE
0 commit comments