Merge pull request #314 from algernon/f/builder/flash-hooks

kaleidoscope-builder: add `preFlash_HOOKS` and `postFlash_HOOKS`
pull/322/head
Gergely Nagy 7 years ago committed by GitHub
commit 8546814b98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -79,10 +79,19 @@ prepare_to_flash () {
flash () { flash () {
prepare_to_flash prepare_to_flash
# This is defined in the (optional) user config.
# shellcheck disable=SC2154
${preFlash_HOOKS}
reset_device reset_device
sleep 3s sleep 3s
find_bootloader_ports find_bootloader_ports
flash_over_usb || flash_over_usb flash_over_usb || flash_over_usb
# This is defined in the (optional) user config.
# shellcheck disable=SC2154
${postFlash_HOOKS}
} }
flash_over_usb () { flash_over_usb () {

Loading…
Cancel
Save