odd things happening here
EIVE/-/pipeline/pr-main This commit looks good Details

This commit is contained in:
Robin Müller 2024-04-26 14:36:02 +02:00
parent c50f8c2ce2
commit a59aceda75
1 changed files with 2 additions and 1 deletions

View File

@ -745,7 +745,8 @@ def handle_mpsoc_data_reply(action_id: int, pw: PrintWrapper, custom_data: bytea
"PLOC MPSoC flash directory data shorter than minimum 16 bytes"
)
current_idx = 0
dir_name_short = custom_data[current_idx : current_idx + 12].decode()
end_of_str = custom_data[current_idx : current_idx + 12].index(b"\x00")
dir_name_short = custom_data[current_idx : current_idx + end_of_str].decode()
current_idx += 12
num_elements = struct.unpack("!I", custom_data[current_idx : current_idx + 4])[
0