We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30f3f8f commit 480912aCopy full SHA for 480912a
adafruit_bmp280.py
@@ -368,11 +368,11 @@ def altitude(self) -> float:
368
- which you must enter ahead of time)"""
369
p = self.pressure # in Si units for hPascal
370
return 44330 * (1.0 - math.pow(p / self.sea_level_pressure, 0.1903))
371
-
+
372
@altitude.setter
373
def altitude(self, value: float) -> None:
374
375
- self.sea_level_pressure = p / math.pow(1.0 - value/44330.0, 5.255)
+ self.sea_level_pressure = p / math.pow(1.0 - value / 44330.0, 5.255)
376
377
####################### Internal helpers ################################
378
def _read_coefficients(self) -> None:
0 commit comments