From ef375dd42f0d734969fbadb352c265570af3821a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 30 Nov 2011 09:43:29 +0530 Subject: [PATCH] Fix #896881 (archos E70B internal/carda memory swapped) --- src/calibre/devices/android/driver.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/calibre/devices/android/driver.py b/src/calibre/devices/android/driver.py index f3aa465476..73e6bd0dad 100644 --- a/src/calibre/devices/android/driver.py +++ b/src/calibre/devices/android/driver.py @@ -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'