Skip to content

Commit

Permalink
bme280: remove time.sleep from humidity read
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxxi committed Oct 22, 2023
1 parent 78ce361 commit a6aaf6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion klippy/extras/bme280.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a6aaf6b

Please sign in to comment.