From 4b8c7cde3abf38742bcc727fd9fe79d41ed6d924 Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 13 May 2022 11:51:24 +0200 Subject: [PATCH] fix object size mismatch for str --- examples/data/Python/rx_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/data/Python/rx_data.py b/examples/data/Python/rx_data.py index 1d9295b..2db1114 100644 --- a/examples/data/Python/rx_data.py +++ b/examples/data/Python/rx_data.py @@ -30,7 +30,7 @@ class struct(object): arr = link.rx_obj(obj_type=str, start_pos=recSize, - obj_byte_size=6) + obj_byte_size=5) recSize += len(arr) print('{}{} | {}'.format(testStruct.z, testStruct.y, arr)) @@ -47,4 +47,4 @@ class struct(object): except KeyboardInterrupt: - link.close() \ No newline at end of file + link.close()