Commit 936ba58e authored by 方开's avatar 方开 🍔
Browse files

修复乘以小数点导致的精度问题

parent c91f974a
......@@ -82,7 +82,7 @@ def checkData(data: bytes, houseType: str, measureType: str, pointnum):
ph2List.append(ph2Value)
elif "a7" in i:
o2Data = i[4:8]
o2Value = int(o2Data, 16) * 0.01
o2Value = int(o2Data, 16) / 100
o2List.append(o2Value)
elif "a8" in i:
co2Data = i[4:8]
......
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