Skip to content

Commit

Permalink
Modified offset to patches to take care of 16 bytes of metadata header
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsKr committed Oct 27, 2023
1 parent 805b390 commit 6c84114
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
2023-10-26 Version 1.0
Initial version
2023-10-26 Version 0.9
Initial version, resulting files to be tested on actual JD-08 device
2 changes: 1 addition & 1 deletion patchmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def create_widgets(self):

def getPatchOffset(self, data, index):
# TODO: determine if section offset in header is what it is expected to be
return 0x168260 + index * 0x800
return 0x168260 + 16 + index * 0x800 # 16 is the size of the patch section metadata

def getPatch(self, index):
offs = self.getPatchOffset(self.data, index)
Expand Down

0 comments on commit 6c84114

Please sign in to comment.