Skip to content

Commit 480912a

Browse files
Andrew SmithAndrew Smith
Andrew Smith
authored and
Andrew Smith
committed
formatted with black
1 parent 30f3f8f commit 480912a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_bmp280.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,11 @@ def altitude(self) -> float:
368368
- which you must enter ahead of time)"""
369369
p = self.pressure # in Si units for hPascal
370370
return 44330 * (1.0 - math.pow(p / self.sea_level_pressure, 0.1903))
371-
371+
372372
@altitude.setter
373373
def altitude(self, value: float) -> None:
374374
p = self.pressure # in Si units for hPascal
375-
self.sea_level_pressure = p / math.pow(1.0 - value/44330.0, 5.255)
375+
self.sea_level_pressure = p / math.pow(1.0 - value / 44330.0, 5.255)
376376

377377
####################### Internal helpers ################################
378378
def _read_coefficients(self) -> None:

0 commit comments

Comments
 (0)