mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use NOOK_COLOR for the Glowlight 4
This commit is contained in:
parent
95b852684e
commit
fe7c125d6d
@ -29,8 +29,8 @@ class NOOK(USBMS):
|
|||||||
FORMATS = ['epub', 'pdb', 'pdf']
|
FORMATS = ['epub', 'pdb', 'pdf']
|
||||||
|
|
||||||
VENDOR_ID = [0x2080, 0x18d1] # 0x18d1 is for softrooted nook
|
VENDOR_ID = [0x2080, 0x18d1] # 0x18d1 is for softrooted nook
|
||||||
PRODUCT_ID = [0x001, 0xd] # 0xd is Glowlight 4
|
PRODUCT_ID = [0x001]
|
||||||
BCD = [0x322, 0x409]
|
BCD = [0x322]
|
||||||
|
|
||||||
VENDOR_NAME = 'B&N'
|
VENDOR_NAME = 'B&N'
|
||||||
WINDOWS_MAIN_MEM = 'NOOK'
|
WINDOWS_MAIN_MEM = 'NOOK'
|
||||||
@ -89,8 +89,9 @@ class NOOK_COLOR(NOOK):
|
|||||||
0x007, # Glowlight from 2013
|
0x007, # Glowlight from 2013
|
||||||
0xb, # Glowlight from 2017
|
0xb, # Glowlight from 2017
|
||||||
0xc, # Glowlight from 2019
|
0xc, # Glowlight from 2019
|
||||||
|
0xd, # Glowlight from 2021
|
||||||
]
|
]
|
||||||
BCD = [0x216, 0x9999]
|
BCD = [0x216, 0x9999, 0x409]
|
||||||
|
|
||||||
WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = ['EBOOK_DISK', 'NOOK_TABLET',
|
WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = ['EBOOK_DISK', 'NOOK_TABLET',
|
||||||
'NOOK_SIMPLETOUCH', 'NOOK_GLOWLIGHT']
|
'NOOK_SIMPLETOUCH', 'NOOK_GLOWLIGHT']
|
||||||
@ -105,7 +106,7 @@ class NOOK_COLOR(NOOK):
|
|||||||
product_id = self.device_being_opened[1]
|
product_id = self.device_being_opened[1]
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
prints('Opened NOOK with product id:', product_id)
|
prints('Opened NOOK with product id:', product_id)
|
||||||
if product_id in (0xb, 0xc):
|
if product_id in (0xb, 0xc, 0xd):
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
prints('Setting Nook upload directory to NOOK/My Files')
|
prints('Setting Nook upload directory to NOOK/My Files')
|
||||||
self.EBOOK_DIR_MAIN = 'NOOK/My Files'
|
self.EBOOK_DIR_MAIN = 'NOOK/My Files'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user