Skip to content

Commit

Permalink
Avoid path issues with qmk flash on Windows (qmk#24130)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored Jul 17, 2024
1 parent 522bf1d commit 63ef651
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/python/qmk/flashers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 63ef651

Please sign in to comment.