diff --git a/etc/kaleidoscope-builder.conf b/etc/kaleidoscope-builder.conf index fa4d064d..c57cf09d 100644 --- a/etc/kaleidoscope-builder.conf +++ b/etc/kaleidoscope-builder.conf @@ -34,7 +34,7 @@ find_max_prog_size() { -tools "${ARDUINO_PATH}/tools-builder" \ -fqbn "${FQBN}" \ -dump-prefs | grep "upload\.maximum_size=") - MAX_PROG_SIZE=${MAX_PROG_SIZE:-$(echo "${VPIDS}" | grep upload.maximum_size | cut -d= -f2)} + MAX_PROG_SIZE=${MAX_PROG_SIZE:-$(echo "${VPIDS}" | grep upload.maximum_size | head -n 1 | cut -d= -f2)} } find_device_vid_pid() {