Skip to content

Commit e028d90

Browse files
author
caternuson
committed
change pass to time.sleep
1 parent 56d415b commit e028d90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_ads1x15/adafruit_ads1x15.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
__version__ = "0.0.0-auto.0"
3232
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_ADS1x15.git"
3333

34+
import time
3435
from micropython import const
3536
from adafruit_bus_device.i2c_device import I2CDevice
3637

@@ -211,7 +212,7 @@ def _read(self, mux, gain, data_rate, mode):
211212
self._write_register(ADS1X15_POINTER_CONFIG, config)
212213
# Wait for conversion to complete
213214
while not self._conversion_complete():
214-
pass
215+
time.sleep(0.01)
215216
# Return the result
216217
return self.get_last_result()
217218

0 commit comments

Comments
 (0)