added double backticks to doc string
This commit is contained in:
parent
c74a35b80b
commit
fb5aa30d54
1 changed files with 2 additions and 2 deletions
|
|
@ -178,8 +178,8 @@ class Adafruit_BME280:
|
|||
|
||||
@property
|
||||
def altitude(self):
|
||||
"""The altitude based on current `pressure` versus the sea level pressure
|
||||
(`sea_level_pressure`) - which you must enter ahead of time)"""
|
||||
"""The altitude based on current ``pressure`` versus the sea level pressure
|
||||
(``sea_level_pressure``) - which you must enter ahead of time)"""
|
||||
pressure = self.pressure # in Si units for hPascal
|
||||
return 44330 * (1.0 - math.pow(pressure / self.sea_level_pressure, 0.1903))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue