aboutsummaryrefslogtreecommitdiff
path: root/scripts/stm32_mem.py
diff options
context:
space:
mode:
authorGareth McMullin2013-02-20 10:55:52 +1300
committerGareth McMullin2013-02-20 10:55:52 +1300
commit530ee15153b05f97a38dd549d5813c91f936fc96 (patch)
tree041c52b659b73ab8c04456eb77b5291707cf2818 /scripts/stm32_mem.py
parentd5be7b7a508cbdddfd31df88f368c09dc1fc4a88 (diff)
Correct upload script for detection of F1/F4 start address.
Diffstat (limited to 'scripts/stm32_mem.py')
-rwxr-xr-xscripts/stm32_mem.py2
1 files changed, 1 insertions, 1 deletions
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