feat(DLPilot): M305 实测负载功率对接(功率检测三步序列)
This commit is contained in:
@@ -121,7 +121,8 @@ def run_dlpc(port, baud, cmds):
|
||||
print('← (35s 超时无响应)')
|
||||
rc = 1
|
||||
else:
|
||||
print(f'← {dlpc_rs485.describe(got)} [{got.raw.hex(" ").upper()}]')
|
||||
nice = dlpc_rs485.format_power(cmd, got) # 电源命令二进制载荷译码
|
||||
print(f'← {nice or dlpc_rs485.describe(got)} [{got.raw.hex(" ").upper()}]')
|
||||
if got.type_code != 0xF0:
|
||||
rc = 1
|
||||
ser.close()
|
||||
|
||||
Reference in New Issue
Block a user