mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-10 06:59:54 +08:00
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:
@@ -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=@
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user