From de834264ab9c199a141c4cc985261aeb30915354 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 13 Feb 2022 17:15:57 +0100 Subject: [PATCH] scripts: hexprog.py: minor fixes Unused import and useless semicolon. --- scripts/hexprog.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/hexprog.py b/scripts/hexprog.py index 0c26e9c..c9356d1 100755 --- a/scripts/hexprog.py +++ b/scripts/hexprog.py @@ -18,7 +18,6 @@ # along with this program. If not, see . import gdb -import struct import time # Microcode sequence to erase option bytes @@ -35,7 +34,7 @@ def flash_write_hex(target, hexfile, progress_cb=None): raise Exception("Error in hex file") reclen = int(line[1:3], 16) addrlo = int(line[3:7], 16) - rectype = int(line[7:9], 16); + rectype = int(line[7:9], 16) if sum(x for x in bytes.fromhex(line[1:11+reclen*2])) & 0xff != 0: raise Exception("Checksum error in hex file") if rectype == 0: # Data record