From: daid Date: Sat, 27 Jul 2013 05:35:09 +0000 (+0200) Subject: Ignore floppy drives on SD card detect. http://umforum.ultimaker.com/index.php?/topic... X-Git-Tag: 13.10~116 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e9a04b9f91dcbd962351719e2d77a4ea0f2f5535;p=cura.git Ignore floppy drives on SD card detect. umforum.ultimaker.com/index.php?/topic/2416-13064-floppy-is-working-with-noice/ --- diff --git a/Cura/util/removableStorage.py b/Cura/util/removableStorage.py index 5492cb90..16d05775 100644 --- a/Cura/util/removableStorage.py +++ b/Cura/util/removableStorage.py @@ -75,7 +75,7 @@ def _updateCache(): import ctypes bitmask = windll.kernel32.GetLogicalDrives() for letter in string.uppercase: - if bitmask & 1 and windll.kernel32.GetDriveTypeA(letter + ':/') == 2: + if letter != 'A' and letter != 'B' and bitmask & 1 and windll.kernel32.GetDriveTypeA(letter + ':/') == 2: volumeName = '' nameBuffer = ctypes.create_unicode_buffer(1024) if windll.kernel32.GetVolumeInformationW(ctypes.c_wchar_p(letter + ':/'), nameBuffer, ctypes.sizeof(nameBuffer), None, None, None, None, 0) == 0: