blackmagic firmware update: show error on zero file length that can happen in wget when the file does not exist anymore and update the path the the latest firmware

This commit is contained in:
dewagter
2015-05-09 16:35:18 +02:00
parent a247af5114
commit 113e87f73c
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# Hey Emacs, this is a -*- makefile -*-
BLACKSPHERE = http://blacksphere.co.nz/builds
BLACKSPHERE = http://blacksphere.co.nz/builds/archive/2014
BLACKMAGIC = blackmagic-20141017.bin
Q=@
+2
View File
@@ -93,6 +93,8 @@ if __name__ == "__main__":
dfudev.make_idle()
bin = open(argv[1], "rb").read()
if len(bin) == 0:
print ("ERROR: File length is zero! (Try downloading again)\r")
addr = 0x8002000
while bin: