Skip to content

Commit 5c62a33

Browse files
Merge pull request #26 from FrameworkComputer/fix-decode-bug
qmk_gui: Fix crash on flashing on Chinese language system
2 parents 3679a23 + 0512360 commit 5c62a33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

uf2conv.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,10 @@ def to_str(b):
232232
def get_drives():
233233
drives = []
234234
if sys.platform == "win32":
235+
# TODO: Could also check "VolumeName" == "RPI-RP2"
236+
# But it should be okay because we check for the INFO file that no other drive would have
235237
r = subprocess.check_output(["wmic", "PATH", "Win32_LogicalDisk",
236-
"get", "DeviceID,", "VolumeName,",
238+
"get", "DeviceID,",
237239
"FileSystem,", "DriveType"])
238240
for line in to_str(r).split('\n'):
239241
words = re.split('\s+', line)

0 commit comments

Comments
 (0)