mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-06-20 14:23:45 -04:00
Add bootloadHID support to qmk flash (#26053)
This commit is contained in:
@@ -136,6 +136,10 @@ def _find_serial_port(vid, pid):
|
||||
return None
|
||||
|
||||
|
||||
def _flash_bootloadhid(file):
|
||||
cli.run(['bootloadHID', '-r', file], capture_output=False)
|
||||
|
||||
|
||||
def _flash_caterina(details, file):
|
||||
port = _find_serial_port(details[0], details[1])
|
||||
if port:
|
||||
@@ -218,6 +222,8 @@ def flasher(mcu, file):
|
||||
time.sleep(1)
|
||||
if bl == 'atmel-dfu':
|
||||
_flash_atmel_dfu(details, file)
|
||||
elif bl == 'bootloadhid':
|
||||
_flash_bootloadhid(file)
|
||||
elif bl == 'caterina':
|
||||
if _flash_caterina(details, file):
|
||||
return (True, "The Caterina bootloader was found but is not writable. Check 'qmk doctor' output for advice.")
|
||||
|
||||
Reference in New Issue
Block a user