Skip to content

Commit

Permalink
Merge pull request #26 from FrameworkComputer/fix-decode-bug
Browse files Browse the repository at this point in the history
qmk_gui: Fix crash on flashing on Chinese language system
  • Loading branch information
JohnAZoidberg authored Oct 30, 2023
2 parents 3679a23 + 0512360 commit 5c62a33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uf2conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,10 @@ def to_str(b):
def get_drives():
drives = []
if sys.platform == "win32":
# TODO: Could also check "VolumeName" == "RPI-RP2"
# But it should be okay because we check for the INFO file that no other drive would have
r = subprocess.check_output(["wmic", "PATH", "Win32_LogicalDisk",
"get", "DeviceID,", "VolumeName,",
"get", "DeviceID,",
"FileSystem,", "DriveType"])
for line in to_str(r).split('\n'):
words = re.split('\s+', line)
Expand Down

0 comments on commit 5c62a33

Please sign in to comment.