From fe7c125d6d7a631d14dc86c667fcd53f787d4cee Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 10 Dec 2021 20:49:43 +0530 Subject: [PATCH] Use NOOK_COLOR for the Glowlight 4 --- src/calibre/devices/nook/driver.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/calibre/devices/nook/driver.py b/src/calibre/devices/nook/driver.py index aaace95425..ae295b461c 100644 --- a/src/calibre/devices/nook/driver.py +++ b/src/calibre/devices/nook/driver.py @@ -29,8 +29,8 @@ class NOOK(USBMS): FORMATS = ['epub', 'pdb', 'pdf'] VENDOR_ID = [0x2080, 0x18d1] # 0x18d1 is for softrooted nook - PRODUCT_ID = [0x001, 0xd] # 0xd is Glowlight 4 - BCD = [0x322, 0x409] + PRODUCT_ID = [0x001] + BCD = [0x322] VENDOR_NAME = 'B&N' WINDOWS_MAIN_MEM = 'NOOK' @@ -89,8 +89,9 @@ class NOOK_COLOR(NOOK): 0x007, # Glowlight from 2013 0xb, # Glowlight from 2017 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', 'NOOK_SIMPLETOUCH', 'NOOK_GLOWLIGHT'] @@ -105,7 +106,7 @@ class NOOK_COLOR(NOOK): product_id = self.device_being_opened[1] if DEBUG: prints('Opened NOOK with product id:', product_id) - if product_id in (0xb, 0xc): + if product_id in (0xb, 0xc, 0xd): if DEBUG: prints('Setting Nook upload directory to NOOK/My Files') self.EBOOK_DIR_MAIN = 'NOOK/My Files'