fix: RP2040 firmware detection (#533)
Co-authored-by: dw-0 <th33xitus@gmail.com>
This commit is contained in:
1 parent
7e87f8af32
commit
b604d93d0c
1 file changed
+2
-1
@@ -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