mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-22 13:30:36 +01:00
Round pressure sensor output
This commit is contained in:
parent
b340711526
commit
3e0e5436d1
@ -328,7 +328,7 @@ class Pressure(Sensor):
|
|||||||
def update_data(self):
|
def update_data(self):
|
||||||
try:
|
try:
|
||||||
if RNS.vendor.platformutils.is_android():
|
if RNS.vendor.platformutils.is_android():
|
||||||
self.data = {"mbar": self.android_sensor.pressure}
|
self.data = {"mbar": round(self.android_sensor.pressure, 2)}
|
||||||
|
|
||||||
except:
|
except:
|
||||||
self.data = None
|
self.data = None
|
||||||
|
Loading…
Reference in New Issue
Block a user