Skip to content

Commit 427834d

Browse files
committed
Updated ChipDeviceCtrl python module:
- Changed buffer size for storing RCAC to 650 from 1024
1 parent d0f1908 commit 427834d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/controller/python/chip/ChipDeviceCtrl.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2264,9 +2264,10 @@ async def CommissionOnNetwork(self, nodeId: int, setupPinCode: int,
22642264

22652265

22662266
def get_rcac(self):
2267+
# Passes captured RCAC data back to python test modules to be used for validation
22672268
try:
22682269
# Assume rcac_size is the size you want to allocate
2269-
rcac_size = 1024 # Allocate sufficient memory based on expected size
2270+
rcac_size = 650 # Allocate sufficient memory based on expected size
22702271
rcac_buffer = (ctypes.c_uint8 * rcac_size)() # Allocate a ctypes buffer
22712272

22722273
actual_rcac_size = ctypes.c_size_t()

0 commit comments

Comments
 (0)