Update firehose.py

This commit is contained in:
Bjoern Kerler 2019-06-10 12:46:37 +02:00 committed by GitHub
parent 9034862418
commit ba3539b845
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -348,7 +348,11 @@ class qualcomm_firehose:
self.cfg.MaxPayloadSizeToTargetInBytes=int(rsp[1]["MaxPayloadSizeToTargetInBytes"])
self.cfg.MaxPayloadSizeToTargetInBytesSupported=int(rsp[1]["MaxPayloadSizeToTargetInBytesSupported"])
self.cfg.MaxXMLSizeInBytes=int(rsp[1]["MaxXMLSizeInBytes"])
self.cfg.MaxPayloadSizeFromTargetInBytes=int(rsp[1]["MaxPayloadSizeFromTargetInBytes"])
if "MaxPayloadSizeFromTargetInBytes" in rsp[1]:
self.cfg.MaxPayloadSizeFromTargetInBytes=int(rsp[1]["MaxPayloadSizeFromTargetInBytes"])
else:
print("Unknown cmd structure, please issue this to github: "+str(rsp[1]))
exit(0)
self.cfg.TargetName=rsp[1]["TargetName"]
if "MSM" not in self.cfg.TargetName:
self.cfg.TargetName="MSM"+self.cfg.TargetName