From d86c0ac775b2d5561b1b2c572e5f15a4d0b4172e Mon Sep 17 00:00:00 2001 From: Kurt Erickson Date: Mon, 31 Aug 2026 11:59:32 -0500 Subject: [PATCH] filesystem: Removed a check in WriteFileCmdRequest that generated an error if the write block size was greater than 248 bytes long. This is a problem on platforms such as XBee Wi-SUN which have a NP value higher than this limit. In the case of XBee Wi-SUN the higher level filesystem would calculate a much bigger block size which would fail in the lower level filesystem because of this check. --- digi/xbee/models/filesystem.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/digi/xbee/models/filesystem.py b/digi/xbee/models/filesystem.py index ca9c97a..5458b4f 100644 --- a/digi/xbee/models/filesystem.py +++ b/digi/xbee/models/filesystem.py @@ -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)