Simplify defaulting of ARCH and FQBN

tmp/arduino-cli-pre-rebase
Jesse Vincent 4 years ago
parent 809f367b32
commit 2ba10574d4
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -424,11 +424,8 @@ do_compile () {
# shellcheck disable=SC1090
FQBN="$(. "${SKETCH_DIR}"/.kaleidoscope-builder.conf && echo "${FQBN}")"
if [ -n "${BOARD}" ]; then
if [ -z "${ARCH}" ]; then
FQBN="keyboardio:avr:${BOARD}"
else
FQBN="keyboardio:${ARCH}:${BOARD}"
fi
: "${ARCH:=avr}"
FQBN="keyboardio:${ARCH}:${BOARD}"
fi
fi

Loading…
Cancel
Save