From e9a04b9f91dcbd962351719e2d77a4ea0f2f5535 Mon Sep 17 00:00:00 2001 From: daid Date: Sat, 27 Jul 2013 07:35:09 +0200 Subject: [PATCH] Ignore floppy drives on SD card detect. http://umforum.ultimaker.com/index.php?/topic/2416-13064-floppy-is-working-with-noice/ --- Cura/util/removableStorage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2