From 3e0e5436d1081c6f9beeb57a690b04c46ea2c3e8 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 22 Oct 2023 23:14:09 +0200 Subject: [PATCH] Round pressure sensor output --- sbapp/sideband/sense.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbapp/sideband/sense.py b/sbapp/sideband/sense.py index 8571752..666891f 100644 --- a/sbapp/sideband/sense.py +++ b/sbapp/sideband/sense.py @@ -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