From 530ee15153b05f97a38dd549d5813c91f936fc96 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Wed, 20 Feb 2013 10:55:52 +1300 Subject: [PATCH] Correct upload script for detection of F1/F4 start address. --- scripts/stm32_mem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/stm32_mem.py b/scripts/stm32_mem.py index d7785e5..10fea9d 100755 --- a/scripts/stm32_mem.py +++ b/scripts/stm32_mem.py @@ -108,7 +108,7 @@ if __name__ == "__main__": bin = open(args.progfile, "rb").read() - if product.find("F4") : + if "F4" in product: addr = 0x8004000 else: addr = 0x8002000