Avoid path issues with qmk flash on Windows (#24130)

This commit is contained in:
Joel Challis 2024-07-17 20:31:18 +01:00 committed by GitHub
parent 522bf1daf2
commit 63ef6516d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -206,6 +206,8 @@ def _flash_uf2(file):
def flasher(mcu, file):
# Avoid "expected string or bytes-like object, got 'WindowsPath" issues
file = file.as_posix()
bl, details = _find_bootloader()
# Add a small sleep to avoid race conditions
time.sleep(1)