diff --git a/scripts/stm32_mem.py b/scripts/stm32_mem.py index 1867488..664b3df 100755 --- a/scripts/stm32_mem.py +++ b/scripts/stm32_mem.py @@ -138,7 +138,7 @@ def stm32_scan(args, test): product = dfudev.handle.getString(dfudev.dev.iProduct, 96).decode('utf8') serial_no = dfudev.handle.getString(dfudev.dev.iSerialNumber, 30).decode('utf8') if args.serial_target: - if man == "Black Sphere Technologies" and serial_no == args.serial_target: + if man == "Black Sphere Technologies" and serial_no == args.serial_target: break else: if man == "Black Sphere Technologies": @@ -236,7 +236,7 @@ if __name__ == "__main__": bin = file.read() len = len(bin) addr = start - print("-") + print("\n-") while bin: try: stm32_set_address(dfudev, addr) @@ -251,7 +251,7 @@ if __name__ == "__main__": else : size = len if bin[:size] != bytearray(data[:size]) : - print ("\nMitmatch in block at 0x%08X" % addr) + print ("\nMismatch in block at 0x%08X" % addr) break; bin = bin[1024:] addr += 1024