添加生产镜像制作流程;

修改数据项地址分布;
修复数据读写重发逻辑;
修复字符串数据对`0xFF`数据无法解析的问题;
This commit is contained in:
何 泽隆
2024-05-30 11:28:00 +08:00
parent fb37001c52
commit 85aa6da4dc
3 changed files with 24 additions and 16 deletions

View File

@@ -188,6 +188,7 @@ def display_data(modbus_map: dict, address: int, data: list):
""" 字符串表示 """
data_len = current_map[2]
item = display_str(data, data_len)
item = item.replace(b'\xff', b' 0xFF')
item = item.decode()
elif current_map[1] == 5:
""" 载波地址表示 """