Merge pull request #47 from vanillajonathan/patch-1
Fix capitalization of class name
This commit is contained in:
commit
4d0c002e41
1 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ class OutOfRegionException(Exception):
|
|||
pass
|
||||
|
||||
|
||||
class regionFile:
|
||||
class RegionFile:
|
||||
def __init__(self, f, region_start, region_end):
|
||||
self.f = f
|
||||
self.region_start = region_start
|
||||
|
@ -397,7 +397,7 @@ if __name__ == "__main__":
|
|||
shutil.copy(args.file, args.output)
|
||||
f = open(args.output, "r+b")
|
||||
|
||||
mef = regionFile(f, me_start, me_end)
|
||||
mef = RegionFile(f, me_start, me_end)
|
||||
|
||||
print("Removing extra partitions...")
|
||||
mef.fill_range(me_start + 0x30, ftpr_offset, b"\xff")
|
||||
|
@ -415,7 +415,7 @@ if __name__ == "__main__":
|
|||
|
||||
if args.descriptor:
|
||||
print("Removing ME/TXE R/W access to the other flash regions...")
|
||||
fdf = regionFile(f, fd_start, fd_end)
|
||||
fdf = RegionFile(f, fd_start, fd_end)
|
||||
fdf.write_to(fmba + 0x4, pack("<I", 0x04040000))
|
||||
|
||||
if me11:
|
||||
|
|
Loading…
Reference in a new issue