print('Found a keyboard in normal mode. Attempting to send it to bootloader mode ...',end='')
sendDeviceToBootloaderMode(kb)
send_device_to_bootloader_mode(kb)
print(' done.')
print("Hint: If your keyboard can't be set to bootloader mode automatically, plug it in while pressing the bootloader key to do so manually.")
print(" You can find more infos about this here: https://github.com/qmk/qmk_firmware/tree/master/keyboards/ps2avrGB#setting-the-board-to-bootloader-mode")
@ -84,9 +90,9 @@ found = False
forattemptinrange(1,attempts+1):
print("Searching for keyboard in bootloader mode (%i/%i) ... "%(attempt,attempts),end='')
ifcheckForKeyboardInBootloaderMode():
ifcheck_keyboard_bootloader_mode():
print('Found',end='\n\n')
flashKeyboard(sys.argv[1])
flash_keyboard(args.firmware_hex.name)
found=True
break
else:
@ -102,4 +108,3 @@ for attempt in range(1, attempts + 1):
ifnotfound:
print("Couldn't find a flashable keyboard. Aborting.")