File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -157,14 +157,16 @@ def _conversion_value(self, raw_adc):
157
157
158
158
def _read (self , pin ):
159
159
"""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
161
162
if self .mode == Mode .CONTINUOUS and self ._last_pin_read == pin :
162
163
return self ._conversion_value (self .get_last_result (True ))
163
164
164
165
# Assign last pin read if in SINGLE mode or first sample in CONTINUOUS mode on this pin
165
166
self ._last_pin_read = pin
166
167
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
168
170
if self .mode == Mode .SINGLE :
169
171
config = _ADS1X15_CONFIG_OS_SINGLE
170
172
else :
You can’t perform that action at this time.
0 commit comments