diff --git a/edlclient/Library/firehose.py b/edlclient/Library/firehose.py index 3022e53..724983e 100755 --- a/edlclient/Library/firehose.py +++ b/edlclient/Library/firehose.py @@ -1303,19 +1303,24 @@ def cmd_getstorageinfo(self): return None def cmd_setactiveslot(self, slot: str): - def cmd_patch_multiple(lun, start_sector_patch, byte_offset_patch, headeroffset, pdata, header): - offset = 0 + def cmd_patch_multiple(lun, start_sector_patch, byte_offset_patch, headeroffset, pdata, header): + offset = 0 header_size = len(header) - pdata_size = len(pdata) - write_size = pdata_size # with assumption pdata_size > header_size - patch_subset_size = 4 - for i in range(0, write_size, patch_subset_size): - pdata_subset = int(unpack("