diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index b0543e4b..0c496b39 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -195,6 +195,13 @@ find_sketch () { } +find_device_vid_pid() { + : ${VID:=$(get_arduino_pref 'build.vid')} + : ${SKETCH_PID:=$(get_arduino_pref 'build.pid')} + : ${BOOTLOADER_PID:=$(get_arduino_pref 'bootloader.pid')} + : ${BOOTLOADER_VID:=$(get_arduino_pref 'bootloader.vid')} +} + prompt_before_flashing () { flashing_instructions=$(get_arduino_pref 'build.flashing_instructions') diff --git a/etc/kaleidoscope-builder.conf b/etc/kaleidoscope-builder.conf index de7e8abb..da7b3b12 100644 --- a/etc/kaleidoscope-builder.conf +++ b/etc/kaleidoscope-builder.conf @@ -44,14 +44,6 @@ uname_S=$(uname -s 2>/dev/null || echo not) uname_O=$(uname -o 2>/dev/null || echo not) -find_device_vid_pid() { - : ${VID:=$(get_arduino_pref 'build.vid')} - : ${SKETCH_PID:=$(get_arduino_pref 'build.pid')} - : ${BOOTLOADER_PID:=$(get_arduino_pref 'bootloader.pid')} - : ${BOOTLOADER_VID:=$(get_arduino_pref 'bootloader.vid')} -} - - find_device_port() { find_device_vid_pid