Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pymodbus/pdu/file_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def calculateRtuFrameSize(cls, data: bytes) -> int:
"""Calculate the size of the message."""
hi_byte = int(data[2])
lo_byte = int(data[3])
return ((hi_byte << 16) + lo_byte) * 2 + 6
return ((hi_byte << 16) + lo_byte) + 4

def __init__(self, values: list[int] | None = None, dev_id: int = 1, transaction_id:int = 0) -> None:
"""Initialize a new instance."""
Expand Down