From 4ef4fa26572261f3f11e44e7dd6f20823d104357 Mon Sep 17 00:00:00 2001 From: Miguel Date: Mon, 22 Apr 2024 18:56:09 +0200 Subject: [PATCH] Probado con bits y otros tipos de datos. --- ExpandDB.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ExpandDB.py b/ExpandDB.py index 5d49447..16eddfa 100644 --- a/ExpandDB.py +++ b/ExpandDB.py @@ -160,7 +160,7 @@ def calculate_offsets(db_struct, current_offset=0): value["offset"] = current_offset value["plc_address"] = plc_address # Store the calculated PLC address - print(f"Offset '{current_offset}' at field '{key}' ") + # print(f"Offset '{current_offset}' at field '{key}' ") current_offset += size # Recursively handle nested dictionaries and lists @@ -183,5 +183,4 @@ def expand_dbs(udts, dbs): expand_udt_references(db_content, udts) handle_array_types(db_content) calculate_offsets(db_content) - debug_print_db_struct(db_content) print(f"Completed expansion for DB: {db_name}")