fix: RP2040 firmware detection (#533)

Co-authored-by: dw-0 <th33xitus@gmail.com>
This commit is contained in:
CODeRUS
2024-09-21 12:10:20 +02:00
committed by GitHub
parent 7e87f8af32
commit b604d93d0c

View File

@@ -30,9 +30,10 @@ def find_firmware_file() -> bool:
f1 = "klipper.elf.hex"
f2 = "klipper.elf"
f3 = "klipper.bin"
f4 = "klipper.uf2"
fw_file_exists: bool = (
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