Skip to content

Commit

Permalink
Update parse_huawei_update_app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaofei32 authored Apr 27, 2018
1 parent 510aed9 commit b3bc104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parse_huawei_update_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def parse_block(self):
block_size_hw_int = unpack('<H', block_size_hw)[0]

# Grab the checksum of the file
remaining_header_len = header_len_int - (4 + 4 + 4 + 8 + 4 + 4 + 16 + 16 + 32 + 2 + 2 + 2) # AGO
remaining_header_len = header_len_int - (4 + 4 + 4 + 8 + 4 + 4 + 16 + 16 + 32 + 2 + 2 + 2)
if remaining_header_len:
buffer = self.update_app.read(remaining_header_len)
checksum = format_hex(buffer)
Expand Down Expand Up @@ -215,4 +215,4 @@ def parse_file(update_file_path):

parse_file(update_file_path)



0 comments on commit b3bc104

Please sign in to comment.