Rework blhost-unix.sh a bit now that jump-to-bootloader.js times out and returns a relevant return code.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -x # echo on
|
||||
|
||||
jump-to-bootloader.js
|
||||
sleep 2 &&
|
||||
jump-to-bootloader.js &&
|
||||
blhost --usb 0x15a2,0x0073 flash-erase-all 0 &&
|
||||
blhost --usb 0x15a2,0x0073 flash-image $1 &&
|
||||
blhost --usb 0x15a2,0x0073 reset
|
||||
|
||||
Reference in New Issue
Block a user