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

Loading…
Cancel
Save