Skip to content

Commit 868c0ac

Browse files
committed
env: changed the pressure unit(Pa to hPa)
1 parent cc70cd1 commit 868c0ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

m5stack/libs/unit/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ def read_humidity(self) -> float:
4949
return round(self._temp_humid.measure()[1], 2)
5050

5151
def read_pressure(self) -> float:
52-
return round(self._pressure.measure()[1], 2)
52+
return round((self._pressure.measure()[1]/100), 2)

0 commit comments

Comments
 (0)