mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix Nook HD+ not being detected on windows
This commit is contained in:
parent
929595c805
commit
a952cdd548
@ -13,7 +13,6 @@ import os
|
|||||||
import cStringIO
|
import cStringIO
|
||||||
|
|
||||||
from calibre import fsync
|
from calibre import fsync
|
||||||
from calibre.constants import isosx
|
|
||||||
from calibre.devices.usbms.driver import USBMS
|
from calibre.devices.usbms.driver import USBMS
|
||||||
|
|
||||||
|
|
||||||
@ -88,11 +87,11 @@ class NOOK_COLOR(NOOK):
|
|||||||
name = 'Nook Color Device Interface'
|
name = 'Nook Color Device Interface'
|
||||||
description = _('Communicate with the Nook Color, TSR, Glowlight and Tablet eBook readers.')
|
description = _('Communicate with the Nook Color, TSR, Glowlight and Tablet eBook readers.')
|
||||||
|
|
||||||
PRODUCT_ID = [0x002, 0x003, 0x004,
|
PRODUCT_ID = [
|
||||||
# Glowlight from 2013
|
0x002, 0x003, 0x004,
|
||||||
0x007]
|
0x005, # Nook HD+
|
||||||
if isosx:
|
0x007, # Glowlight from 2013
|
||||||
PRODUCT_ID.append(0x005) # Nook HD+
|
]
|
||||||
BCD = [0x216]
|
BCD = [0x216]
|
||||||
|
|
||||||
WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = ['EBOOK_DISK', 'NOOK_TABLET',
|
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)
|
path = os.path.join(path, subdir)
|
||||||
return USBMS.create_upload_path(self, path, mdata, fname,
|
return USBMS.create_upload_path(self, path, mdata, fname,
|
||||||
create_dirs=create_dirs)
|
create_dirs=create_dirs)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user