Merge remote-tracking branch 'origin/master'

This commit is contained in:
FEIJINTI 2022-08-02 13:24:22 +08:00
commit cd4e12c46c

View File

@ -122,8 +122,10 @@ d. 阀板的脉冲分频系数,>=2即可 h. 发个da和
print(e)
print(f"你给的指令: {value} 咋看都不对")
return
if (value <= 256) and (value >= 1):
if (value <= 257) and (value >= 1):
cmd = b'\x00\x0A' + 'te'.encode('ascii') + f"{value:08d}".encode('ascii')
if value == 257:
print("你发现了这个隐藏的流水灯指令😝😝😝,好厉害。")
self.last_cmd = value
else:
print(f'你给的指令: {value} 值不对我们有256个阀门, 范围是 [1, 256]')