Merge pull request #323 from Informatic/fix/msm8916-payload-size

firehos: fix MaxPayloadSizeToTargetInBytes handling
This commit is contained in:
Bjoern Kerler 2022-08-27 16:09:26 +02:00 committed by GitHub
commit b01e7e2dd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -889,7 +889,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"])