cfg.SECTOR_SIZE_IN_BYTES is an attribut of the firehose instance

This commit is contained in:
Antoine 2023-11-20 15:58:03 +01:00
parent 97fffcf4e3
commit cce157c50c

View file

@ -27,7 +27,7 @@ class generic(metaclass=LogBase):
if res[0]:
lun = res[1]
rpartition = res[2]
if rpartition.sectors <= (0x8000//self.cfg.SECTOR_SIZE_IN_BYTES):
if rpartition.sectors <= (0x8000//self.fh.cfg.SECTOR_SIZE_IN_BYTES):
offsettopatch = 0x7FFF
sector, offset = self.fh.calc_offset(rpartition.sector, offsettopatch)
else: