From 81a1cd004ef9b9e5c3339308533d521b1245681b Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 29 Apr 2018 10:35:42 +0200 Subject: [PATCH] kaleidoscope-builder: add `preFlash_HOOKS` and `postFlash_HOOKS` Fixes #225. Signed-off-by: Gergely Nagy --- bin/kaleidoscope-builder | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index 1ae7b944..a67bab55 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -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 () {