From ffc48e4bb73e47a94014a5cd2b034fa97dcff38a Mon Sep 17 00:00:00 2001 From: Nicolas Date: Tue, 7 Oct 2025 23:24:46 +0200 Subject: [PATCH] test3 --- src/copapy/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/copapy/__init__.py b/src/copapy/__init__.py index a921b07..8b457e2 100644 --- a/src/copapy/__init__.py +++ b/src/copapy/__init__.py @@ -458,6 +458,7 @@ class Target(): assert net in self._variables, f"Variable {net} not found" addr, lengths, var_type = self._variables[net] print('read_value', addr, lengths) + assert lengths > 0 data = read_data_mem(addr, lengths) assert data is not None and len(data) == lengths, f"Failed to read variable {net}" en = {'little': '<', 'big': '>'}[self.sdb.byteorder]