Skip to content

Commit

Permalink
bme280: remove header notice, replace time delay with equivalent
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxxi committed Oct 20, 2023
1 parent 4fd937c commit 78ce361
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions klippy/extras/bme280.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
#
# Copyright (C) 2020 Eric Callahan <[email protected]>
#
# BMP180 sensor support by VAXXi Popescu <[email protected]>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
import logging
import time
from . import bus

REPORT_TIME = .8
Expand Down Expand Up @@ -390,7 +387,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', 2)
UT = (data[0] << 8) | data[1]
except Exception:
Expand Down

0 comments on commit 78ce361

Please sign in to comment.