Round pressure sensor output

This commit is contained in:
Mark Qvist 2023-10-22 23:14:09 +02:00
parent b340711526
commit 3e0e5436d1
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ class Pressure(Sensor):
def update_data(self):
try:
if RNS.vendor.platformutils.is_android():
self.data = {"mbar": self.android_sensor.pressure}
self.data = {"mbar": round(self.android_sensor.pressure, 2)}
except:
self.data = None