Skip to content

Commit a2ec35b

Browse files
committed
ahh...pylint, my old friend
1 parent aeefb83 commit a2ec35b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adafruit_dps310.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,7 @@ def pressure(self):
308308
def altitude(self):
309309
"""The altitude based on the sea level pressure (`sea_level_pressure`) - which you must
310310
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))
311+
return 44330 * (1.0 - math.pow(self.pressure / self.sea_level_pressure, 0.1903))
313312

314313
@property
315314
def temperature(self):

0 commit comments

Comments
 (0)