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

修复一些简单的bug

parent 936ba58e
......@@ -108,7 +108,7 @@ def checkData(data: bytes, houseType: str, measureType: str, pointnum):
# 气象站
elif measureType == "weather":
weatherData = data[12:]
logging.debug(f"气象站原始数据为{tempData}")
logging.debug(f"气象站原始数据为{weatherData}")
# 分别解析相应的数据
airpeedData = hex2Int(weatherData[:4], times=10)
rainFallData = hex2Int(weatherData[4:8], times=5)
......@@ -280,7 +280,7 @@ def measureit(houseId, measureType="all", timeout=2):
subId = subIds[0]
# 如果命令列表数据不为空
addr, cmds, pointNum = gc.getCmdsBySubId(subId)
logging.debug(f"虫害分机地址为{addr},对应命令为{cmds},点数为{pointNums}")
logging.debug(f"虫害分机地址为{addr},对应命令为{cmds}")
dataList = []
# 测试指令和复位指令
if cmds:
......
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