mirror of
https://github.com/bkerler/edl.git
synced 2024-11-14 19:14:58 -05:00
Fix missing totalsectors init
This commit is contained in:
parent
b808386264
commit
d3968de3b4
1 changed files with 2 additions and 1 deletions
|
@ -48,6 +48,7 @@ class nand_partition:
|
|||
self.partitiontblsector = None
|
||||
self.parent = parent
|
||||
self.storage_info = {}
|
||||
self.totalsectors = None
|
||||
|
||||
def parse(self, partdata):
|
||||
self.partentries = {}
|
||||
|
@ -889,7 +890,7 @@ class firehose(metaclass=LogBase):
|
|||
else:
|
||||
self.error("Error on EDL Authentification")
|
||||
return False
|
||||
elif "MaxPayloadSizeToTargetInBytes" in line:
|
||||
elif "MaxPayloadSizeToTargetInBytes" in rsp.data:
|
||||
try:
|
||||
self.cfg.MemoryName = rsp.data["MemoryName"]
|
||||
self.cfg.MaxPayloadSizeToTargetInBytes = int(rsp.data["MaxPayloadSizeToTargetInBytes"])
|
||||
|
|
Loading…
Reference in a new issue