8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28e2529 commit c34e602Copy full SHA for c34e602
tools/uf2conv.py
@@ -279,6 +279,11 @@ def get_drives():
279
match = re.search(r'Mounted\s+.*\s+at\s+([^\.\r\n]*)', stdoutput)
280
if match:
281
drives = [match.group(1)]
282
+ else:
283
+ stderror = proc_out.stderr.decode("UTF-8")
284
+ match = re.search(r'already mounted at\s+[`\']([^\.\r\n\'`]+)', stderror)
285
+ if match:
286
+ drives = [match.group(1)]
287
except Exception as ex:
288
print("Exception executing udisksctl. Exception: {}".format(ex))
289
# If it fails, no problem since it was a heroic attempt
0 commit comments