Commit 1b9b992e authored by Alan Mitchell's avatar Alan Mitchell
Browse files

Converted from mm to inches for Dragino distance sensors.

parent 61588537
......@@ -185,8 +185,8 @@ def decode_ldds(data: bytes) -> Dict[str, Any]:
# Battery voltage
res['vdd'] = (int16(0) & 0x3FFF) / 1000
# Distance in millimeters
res['distance'] = int16(2)
# Distance in inches
res['distance'] = int16(2) / 25.4
return res
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment