From a6aaf6b7c50017d8de5a4129a16a374c7fde7b10 Mon Sep 17 00:00:00 2001 From: VAXXi Popescu Date: Sun, 22 Oct 2023 18:00:19 +0300 Subject: [PATCH] bme280: remove time.sleep from humidity read --- klippy/extras/bme280.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/klippy/extras/bme280.py b/klippy/extras/bme280.py index b2df100c1d58..17bd25a282a3 100644 --- a/klippy/extras/bme280.py +++ b/klippy/extras/bme280.py @@ -400,7 +400,8 @@ def _sample_bmp180(self, eventtime): self.write_register('CTRL_MEAS', meas) try: - time.sleep(0.005) + for i in range(94000): + pass data = self.read_register('REG_MSB', 3) UP = ((data[0] << 16)|(data[1] << 8)|data[2]) >> (8 - self.os_pres) except Exception: