From: Erik Andresen Date: Mon, 27 May 2024 17:53:48 +0000 (+0200) Subject: bootloader: Fix addr on last page X-Git-Url: https://defiant.homedns.org/gitweb/?a=commitdiff_plain;h=HEAD;p=pyshared.git bootloader: Fix addr on last page --- diff --git a/bootloader.py b/bootloader.py index 60e645a..17cf64f 100755 --- a/bootloader.py +++ b/bootloader.py @@ -88,6 +88,7 @@ class bootloader: else: print "Addr 0x%x" % buf_addr handle(buf_addr, buf[:self.pagesize]) + buf_addr += self.pagesize buf = buf[self.pagesize:] elif typ == 3: # Start Segment Address Record self.boot_addr = int(data.encode("hex"), 16)