Skip to content

Commit 01e6b9b

Browse files
authored
Merge pull request #45 from gbaman/patch-1
Remove pressure boundraries
2 parents a1c3464 + 1fd7cb1 commit 01e6b9b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

adafruit_bme280.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@
4646
_BME280_REGISTER_TEMPDATA = const(0xFA)
4747
_BME280_REGISTER_HUMIDDATA = const(0xFD)
4848

49-
_BME280_PRESSURE_MIN_HPA = const(300)
50-
_BME280_PRESSURE_MAX_HPA = const(1100)
5149
_BME280_HUMIDITY_MIN = const(0)
5250
_BME280_HUMIDITY_MAX = const(100)
5351

@@ -368,10 +366,6 @@ def pressure(self):
368366
pressure = pressure + (var1 + var2 + self._pressure_calib[6]) / 16.0
369367

370368
pressure /= 100
371-
if pressure < _BME280_PRESSURE_MIN_HPA:
372-
return _BME280_PRESSURE_MIN_HPA
373-
if pressure > _BME280_PRESSURE_MAX_HPA:
374-
return _BME280_PRESSURE_MAX_HPA
375369
return pressure
376370

377371
@property

0 commit comments

Comments
 (0)