mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-16 20:14:32 +05:00
fix: RP2040 firmware detection (#533)
Co-authored-by: dw-0 <th33xitus@gmail.com>
This commit is contained in:
@@ -30,9 +30,10 @@ def find_firmware_file() -> bool:
|
|||||||
f1 = "klipper.elf.hex"
|
f1 = "klipper.elf.hex"
|
||||||
f2 = "klipper.elf"
|
f2 = "klipper.elf"
|
||||||
f3 = "klipper.bin"
|
f3 = "klipper.bin"
|
||||||
|
f4 = "klipper.uf2"
|
||||||
fw_file_exists: bool = (
|
fw_file_exists: bool = (
|
||||||
target.joinpath(f1).exists() and target.joinpath(f2).exists()
|
target.joinpath(f1).exists() and target.joinpath(f2).exists()
|
||||||
) or target.joinpath(f3).exists()
|
) or target.joinpath(f3).exists() or target.joinpath(f4).exists()
|
||||||
|
|
||||||
return target_exists and fw_file_exists
|
return target_exists and fw_file_exists
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user