From 69d9a7e7723768f3480d578af883c4d76f8a5765 Mon Sep 17 00:00:00 2001 From: bongbui321 Date: Wed, 6 Mar 2024 00:04:47 -0500 Subject: [PATCH] fix setactiveslot --- edlclient/Library/firehose.py | 27 ++++++++++++++++----------- edlclient/Library/gpt.py | 4 ++-- 2 files changed, 18 insertions(+), 13 deletions(-) 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("