since we no longer loop over sketches inside the file, there is no need to save and restore board and fqbn

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

@ -262,8 +262,6 @@ cmd_compile() {
# shellcheck disable=SC2154
${compile_HOOKS}
SAVED_BOARD="${BOARD}"
SAVED_FQBN="${FQBN}"
if [ -e "${SKETCH_DIR}/.kaleidoscope-builder.conf" ]; then
# shellcheck disable=SC1090
BOARD="$(. "${SKETCH_DIR}"/.kaleidoscope-builder.conf && echo "${BOARD}")"
@ -308,9 +306,6 @@ cmd_compile() {
if [ "${ARDUINO_VERBOSE}" == "--verbose" ]; then
echo "Build artifacts can be found in ${BUILD_PATH}"
fi
BOARD="${SAVED_BOARD}"
FQBN="${SAVED_FQBN}"
}
cmd_size_map() {

Loading…
Cancel
Save