On linux (and possibly other operating systems), detect when the

keyboard is in bootloader mode already and skip the prompt to get to
bootloader mode.
pull/815/head
Jesse Vincent 5 years ago
parent 1b117b9eb0
commit 56a9b60d27
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -88,6 +88,6 @@ EOWARN
exit(0);
}
print_warning(join("\n",@log));
print_warning("ERROR: I couldn't find a USB device matching the keyboard's USB Vendor and Device IDs\n");
#debug("ERROR: I couldn't find a USB device matching the keyboard's USB Vendor and Device IDs\n");
#print_warning(join("\n",@log));

@ -163,6 +163,11 @@ prompt_before_flashing () {
flash () {
maybe_build
# Check to see if we can see a keyboard bootloader port.
# If we -can-, then we should skip over the "reset to bootloader" thing
find_bootloader_ports
if [ -z "${DEVICE_PORT_BOOTLOADER}" ]; then
prompt_before_flashing
# This is defined in the (optional) user config.
@ -172,6 +177,8 @@ flash () {
reset_device
sleep 3
find_bootloader_ports
fi
check_bootloader_port_and_flash
# This is defined in the (optional) user config.

Loading…
Cancel
Save