We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeefb83 commit a2ec35bCopy full SHA for a2ec35b
adafruit_dps310.py
@@ -308,8 +308,7 @@ def pressure(self):
308
def altitude(self):
309
"""The altitude based on the sea level pressure (`sea_level_pressure`) - which you must
310
enter ahead of time)"""
311
- p = self.pressure # in Si units for hPascal
312
- return 44330 * (1.0 - math.pow(p / self.sea_level_pressure, 0.1903))
+ return 44330 * (1.0 - math.pow(self.pressure / self.sea_level_pressure, 0.1903))
313
314
@property
315
def temperature(self):
0 commit comments