Skip to content

Commit

Permalink
[Fix] unexpected exponential
Browse files Browse the repository at this point in the history
  • Loading branch information
greenlaver committed Nov 7, 2020
1 parent 3b9e5dc commit 67e5ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardware/UT-201BLE/ble_notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 67e5ff6

Please sign in to comment.