Skip to content

Commit 2bd727e

Browse files
Correct WoSensorTHO battery percentage calculation
1 parent 3c8a080 commit 2bd727e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devicetypes/meter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ humidity = data[12] & 0x7F;
597597

598598
```
599599
# Data from Type: 0x16 (Service Data)
600-
battery_pct = data[5]
600+
battery_pct = data[5] & 0x7F
601601
```
602602

603603
CopyRight@2022 Wonderlabs, Inc.

0 commit comments

Comments
 (0)