Skip to content
Open
Changes from all 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
3 changes: 0 additions & 3 deletions digi/xbee/models/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1375,9 +1375,6 @@ def __init__(self, fid, offset, data=None):
raise ValueError("Offset must be between 0 and 0xFFFFFFFF")
if data and not isinstance(data, bytearray):
raise ValueError("Data must be a bytearray")
max_len = 255 - 7 # cmd_id (1) + f_id (2) + offset (4) = 7
if len(data) > max_len:
raise ValueError("Data cannot exceed %d chars" % max_len)

super().__init__(FSCmdType.FILE_WRITE, fid, direction=self.REQUEST)

Expand Down