diff options
author | Joel Challis <git@zvecr.com> | 2023-01-01 00:43:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-01 11:43:30 +1100 |
commit | 61696fda83be949c0a3ef46eec9bf6a206a4ffac (patch) | |
tree | 1b25de3bb056315ae7031fa0e2c6347b4ea69113 /lib/python | |
parent | c7c44de32fee2c793eb2570e1b4d8570792c682f (diff) |
CLI flashers should allow files outside qmk_firmware folder (#19454)
Diffstat (limited to 'lib/python')
-rw-r--r-- | lib/python/qmk/flashers.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/python/qmk/flashers.py b/lib/python/qmk/flashers.py index a9cf726b44..6b48b9406c 100644 --- a/lib/python/qmk/flashers.py +++ b/lib/python/qmk/flashers.py @@ -178,25 +178,25 @@ def flasher(mcu, file): # Add a small sleep to avoid race conditions time.sleep(1) if bl == 'atmel-dfu': - _flash_atmel_dfu(details, file.name) + _flash_atmel_dfu(details, file) elif bl == 'caterina': - if _flash_caterina(details, file.name): + if _flash_caterina(details, file): return (True, "The Caterina bootloader was found but is not writable. Check 'qmk doctor' output for advice.") elif bl == 'hid-bootloader': if mcu: - if _flash_hid_bootloader(mcu, details, file.name): + if _flash_hid_bootloader(mcu, details, file): return (True, "Please make sure 'teensy_loader_cli' or 'hid_bootloader_cli' is available on your system.") else: return (True, "Specifying the MCU with '-m' is necessary for HalfKay/HID bootloaders!") elif bl == 'stm32-dfu' or bl == 'apm32-dfu' or bl == 'gd32v-dfu' or bl == 'kiibohd': - _flash_dfu_util(details, file.name) + _flash_dfu_util(details, file) elif bl == 'usbasploader' or bl == 'usbtinyisp': if mcu: - _flash_isp(mcu, bl, file.name) + _flash_isp(mcu, bl, file) else: return (True, "Specifying the MCU with '-m' is necessary for ISP flashing!") elif bl == 'md-boot': - _flash_mdloader(file.name) + _flash_mdloader(file) else: return (True, "Known bootloader found but flashing not currently supported!") |