_find_bootloader_ports and _find_device_ports

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

@ -227,7 +227,7 @@ flash() {
# Check to see if we can see a keyboard bootloader port. # Check to see if we can see a keyboard bootloader port.
# If we -can-, then we should skip over the "reset to bootloader" thing # If we -can-, then we should skip over the "reset to bootloader" thing
find_bootloader_ports _find_bootloader_ports
if [ -z "${DEVICE_PORT_BOOTLOADER}" ]; then if [ -z "${DEVICE_PORT_BOOTLOADER}" ]; then
prompt_before_flashing prompt_before_flashing
@ -235,7 +235,7 @@ flash() {
# shellcheck disable=SC2154 # shellcheck disable=SC2154
${preFlash_HOOKS} ${preFlash_HOOKS}
find_device_port _find_device_port
port="${DEVICE_PORT}" port="${DEVICE_PORT}"
else else
port="${DEVICE_PORT_BOOTLOADER}" port="${DEVICE_PORT_BOOTLOADER}"
@ -374,7 +374,7 @@ clean() {
fi fi
} }
find_bootloader_ports() { _find_bootloader_ports() {
if [ -n "${DEVICE_PORT_BOOTLOADER}" ]; then if [ -n "${DEVICE_PORT_BOOTLOADER}" ]; then
echo "DEVICE_PORT_BOOTLOADER=\"${DEVICE_PORT_BOOTLOADER}\" predefined." echo "DEVICE_PORT_BOOTLOADER=\"${DEVICE_PORT_BOOTLOADER}\" predefined."
return return
@ -399,7 +399,7 @@ find_bootloader_ports() {
fi fi
} }
find_device_port() { _find_device_port() {
if [ -n "${DEVICE_PORT}" ]; then if [ -n "${DEVICE_PORT}" ]; then
echo "DEVICE_PORT=\"${DEVICE_PORT}\" predefined." echo "DEVICE_PORT=\"${DEVICE_PORT}\" predefined."
return return

Loading…
Cancel
Save