kaleidoscope-builder: add `preFlash_HOOKS` and `postFlash_HOOKS`

Fixes #225.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/314/head
Gergely Nagy 7 years ago
parent 39601fcba2
commit 81a1cd004e

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

Loading…
Cancel
Save