diff --git a/package/modbus/modbus.py b/package/modbus/modbus.py index 0600f8e8e..bb963a6af 100644 --- a/package/modbus/modbus.py +++ b/package/modbus/modbus.py @@ -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] diff --git a/port/linux/package/pikascript/modbus.py b/port/linux/package/pikascript/modbus.py index 0600f8e8e..bb963a6af 100644 --- a/port/linux/package/pikascript/modbus.py +++ b/port/linux/package/pikascript/modbus.py @@ -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]