clean up function deps a bit

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

@ -350,7 +350,6 @@ program() {
} }
flash_with_programmer() { flash_with_programmer() {
set_executable_paths
${AVRDUDE_CMD} ${AVRDUDE_CMD}
-cusbtiny \ -cusbtiny \
-B 1 \ -B 1 \
@ -358,7 +357,6 @@ flash_with_programmer() {
} }
flash_over_usb () { flash_over_usb () {
set_executable_paths
FLASH_CMD=$( ${AVRDUDE_CMD} FLASH_CMD=$( ${AVRDUDE_CMD}
-cavr109 \ -cavr109 \
-P "${DEVICE_PORT_BOOTLOADER}" \ -P "${DEVICE_PORT_BOOTLOADER}" \
@ -399,6 +397,7 @@ build () {
prepare_ccache () { prepare_ccache () {
find_sketch
build_paths build_paths
enable_ccache enable_ccache
} }
@ -600,6 +599,8 @@ decompile () {
} }
clean () { clean () {
find_sketch
build_paths
if [ -d "$OUTPUT_PATH" ]; then if [ -d "$OUTPUT_PATH" ]; then
rm -rf -- "${OUTPUT_PATH}" rm -rf -- "${OUTPUT_PATH}"
fi fi

Loading…
Cancel
Save