mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
format
This commit is contained in:
parent
600950381e
commit
a41f138895
@ -39,7 +39,10 @@ class ModBus(_modbus._ModBus):
|
||||
lenth = super().serializeWriteRegister(addr, value)
|
||||
return self.sendBuff[0:lenth]
|
||||
|
||||
def serializeMaskWriteRegister(self, addr: int, andMask: int, orMask: int) -> bytes:
|
||||
def serializeMaskWriteRegister(self,
|
||||
addr: int,
|
||||
andMask: int,
|
||||
orMask: int) -> bytes:
|
||||
lenth = super().serializeMaskWriteRegister(addr, andMask, orMask)
|
||||
return self.sendBuff[0:lenth]
|
||||
|
||||
|
@ -39,7 +39,10 @@ class ModBus(_modbus._ModBus):
|
||||
lenth = super().serializeWriteRegister(addr, value)
|
||||
return self.sendBuff[0:lenth]
|
||||
|
||||
def serializeMaskWriteRegister(self, addr: int, andMask: int, orMask: int) -> bytes:
|
||||
def serializeMaskWriteRegister(self,
|
||||
addr: int,
|
||||
andMask: int,
|
||||
orMask: int) -> bytes:
|
||||
lenth = super().serializeMaskWriteRegister(addr, andMask, orMask)
|
||||
return self.sendBuff[0:lenth]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user