From 67e5ff6b2a1db1ffdd3a5187685b743114c3c47f Mon Sep 17 00:00:00 2001 From: aonori Date: Sat, 7 Nov 2020 11:27:53 +0900 Subject: [PATCH] [Fix] unexpected exponential --- hardware/UT-201BLE/ble_notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/UT-201BLE/ble_notify.py b/hardware/UT-201BLE/ble_notify.py index 0882788..20f5208 100755 --- a/hardware/UT-201BLE/ble_notify.py +++ b/hardware/UT-201BLE/ble_notify.py @@ -64,7 +64,7 @@ def readFloatLE(buffer, index): mantissa = -1 * (~(mantissa - 0x01) & 0x00ffffff) # exponenxtial = (data >> 24) & 0xff - exponential = 1 + exponential = -1 return mantissa * math.pow(10, exponential) async def run(loop):