Fix #896881 (archos E70B internal/carda memory swapped)

This commit is contained in:
Kovid Goyal 2011-11-30 09:43:29 +05:30
parent e082bf17f2
commit ef375dd42f

View File

@ -199,6 +199,15 @@ class ANDROID(USBMS):
dirs = list(map(aldiko_tweak, dirs))
return dirs
def windows_sort_drives(self, drives):
vid, pid, bcd = self.device_being_opened[:3]
if (vid, pid, bcd) == (0x0e79, 0x1408, 0x0222):
letter_a = drives.get('carda', None)
if letter_a is not None:
drives['carda'] = drives['main']
drives['main'] = letter_a
return drives
class S60(USBMS):
name = 'S60 driver'