Driver for the new NOOK Glowlight Plus

This commit is contained in:
Kovid Goyal 2019-05-29 19:16:18 +05:30
parent 8a934e19c6
commit 3e2161df68
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -92,6 +92,7 @@ class NOOK_COLOR(NOOK):
0x005, # Nook HD+ 0x005, # Nook HD+
0x007, # Glowlight from 2013 0x007, # Glowlight from 2013
0xb, # Glowlight from 2017 0xb, # Glowlight from 2017
0xc, # Glowlight from 2019
] ]
BCD = [0x216, 0x9999] BCD = [0x216, 0x9999]
@ -108,7 +109,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 == 0xb: if product_id in (0xb, 0xc):
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'