integrate flash-from-bootloader and flash

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

@ -298,7 +298,6 @@ flash() {
# This is defined in the (optional) user config.
# shellcheck disable=SC2154
${preFlash_HOOKS}
fi
find_device_port
run_arduino_cli upload \
@ -306,25 +305,18 @@ flash() {
--port "${DEVICE_PORT}" \
--verbose
# This is defined in the (optional) user config.
# shellcheck disable=SC2154
${postFlash_HOOKS}
}
flash_from_bootloader() {
compile "$@"
prompt_before_flashing
find_bootloader_ports
fi
run_arduino_cli upload \
--fqbn "${FQBN}" \
--port "${DEVICE_PORT_BOOTLOADER}" \
--verbose
return 0
# This is defined in the (optional) user config.
# shellcheck disable=SC2154
${postFlash_HOOKS}
}
hex_with_bootloader() {
compile
@ -622,9 +614,6 @@ usage() {
disassemble
Decompile the sketch.
reset-device
Reset the device.
flash
Flashes the firmware using avrdude.

Loading…
Cancel
Save