Fix Nook HD+ not being detected on windows

This commit is contained in:
Kovid Goyal 2017-01-02 20:29:56 +05:30
parent 929595c805
commit a952cdd548

View File

@ -13,7 +13,6 @@ import os
import cStringIO
from calibre import fsync
from calibre.constants import isosx
from calibre.devices.usbms.driver import USBMS
@ -88,11 +87,11 @@ class NOOK_COLOR(NOOK):
name = 'Nook Color Device Interface'
description = _('Communicate with the Nook Color, TSR, Glowlight and Tablet eBook readers.')
PRODUCT_ID = [0x002, 0x003, 0x004,
# Glowlight from 2013
0x007]
if isosx:
PRODUCT_ID.append(0x005) # Nook HD+
PRODUCT_ID = [
0x002, 0x003, 0x004,
0x005, # Nook HD+
0x007, # Glowlight from 2013
]
BCD = [0x216]
WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = ['EBOOK_DISK', 'NOOK_TABLET',
@ -115,4 +114,3 @@ class NOOK_COLOR(NOOK):
path = os.path.join(path, subdir)
return USBMS.create_upload_path(self, path, mdata, fname,
create_dirs=create_dirs)