Commit c91f974a authored by 方开's avatar 方开 🍔
Browse files

修复水分数据ac出现的错误

parent 43181edd
......@@ -31,7 +31,7 @@ def checkWater(species, waterData):
# 分割出每一路的水分数据进行处理
for i in range(0, len(waterData), 62):
try:
channelData = waterData[i:i + 62].split("ac")[1]
channelData = waterData[i:i + 62][14:]
channelDataList.append(channelData)
except Exception as e:
# 填充6个ffff ffff 对应着六个点的温湿度
......
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