From 9f78e26c11c27d48777ed63e977a8eed3a5f45bb Mon Sep 17 00:00:00 2001 From: Christopher Lentocha Date: Tue, 25 Jun 2024 18:50:09 -0400 Subject: [PATCH] Fix footer command The footer command had syntax issues that prevented the use of it. I mentioned about it on https://github.com/bkerler/edl/pull/564 but decided to fix it myself for everyone. Signed-off-by: Christopher Lentocha --- edlclient/Library/firehose_client.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/edlclient/Library/firehose_client.py b/edlclient/Library/firehose_client.py index cb699b0..2200784 100644 --- a/edlclient/Library/firehose_client.py +++ b/edlclient/Library/firehose_client.py @@ -487,21 +487,22 @@ class firehose_client(metaclass=LogBase): pnames = ["userdata2", "metadata", "userdata", "reserved1", "reserved2", "reserved3"] for pname in pnames: for partition in guid_gpt.partentries: - if partition.name != pname: + if partition != pname: continue - self.printer(f"Detected partition: {partition.name}") + self.printer(f"Detected partition: {partition}") + print data = self.firehose.cmd_read_buffer(lun, - partition.sector + - (partition.sectors - + guid_gpt.partentries[partition].sector + + ((guid_gpt.partentries[partition].sectors) - (0x4000 // self.firehose.cfg.SECTOR_SIZE_IN_BYTES)), (0x4000 // self.firehose.cfg.SECTOR_SIZE_IN_BYTES), False) if data == b"": continue - val = unpack("