mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Bump supported fw version in kobo/tolino driver
New Tolino Shine 5 firmware 5.4.197982 still uses db version 190. Using new USB ids for detecting Tolino models.
This commit is contained in:
parent
0c86a7918f
commit
08e7089570
@ -1419,7 +1419,7 @@ class KOBOTOUCH(KOBO):
|
|||||||
# Starting with firmware version 3.19.x, the last number appears to be is a
|
# Starting with firmware version 3.19.x, the last number appears to be is a
|
||||||
# build number. A number will be recorded here but it can be safely ignored
|
# build number. A number will be recorded here but it can be safely ignored
|
||||||
# when testing the firmware version.
|
# when testing the firmware version.
|
||||||
max_supported_fwversion = (5, 3, 195056)
|
max_supported_fwversion = (5, 4, 197982)
|
||||||
# The following document firmware versions where new function or devices were added.
|
# The following document firmware versions where new function or devices were added.
|
||||||
# Not all are used, but this feels a good place to record it.
|
# Not all are used, but this feels a good place to record it.
|
||||||
min_fwversion_shelves = (2, 0, 0)
|
min_fwversion_shelves = (2, 0, 0)
|
||||||
@ -3695,10 +3695,10 @@ class KOBOTOUCH(KOBO):
|
|||||||
return self.detected_device.idProduct in self.SAGE_PRODUCT_ID
|
return self.detected_device.idProduct in self.SAGE_PRODUCT_ID
|
||||||
|
|
||||||
def isShine5(self):
|
def isShine5(self):
|
||||||
return self.device_model_id.endswith('691')
|
return self.device_model_id.endswith('691') or self.detected_device.idProduct in self.TOLINO_SHINE_5thGEN_PRODUCT_ID
|
||||||
|
|
||||||
def isShineColor(self):
|
def isShineColor(self):
|
||||||
return self.device_model_id.endswith('693')
|
return self.device_model_id.endswith('693') or self.detected_device.idProduct in self.TOLINO_SHINE_COLOR_PRODUCT_ID
|
||||||
|
|
||||||
def isTouch(self):
|
def isTouch(self):
|
||||||
return self.detected_device.idProduct in self.TOUCH_PRODUCT_ID
|
return self.detected_device.idProduct in self.TOUCH_PRODUCT_ID
|
||||||
@ -3707,7 +3707,7 @@ class KOBOTOUCH(KOBO):
|
|||||||
return self.detected_device.idProduct in self.TOUCH2_PRODUCT_ID
|
return self.detected_device.idProduct in self.TOUCH2_PRODUCT_ID
|
||||||
|
|
||||||
def isVisionColor(self):
|
def isVisionColor(self):
|
||||||
return self.device_model_id.endswith('690')
|
return self.device_model_id.endswith('690') or self.detected_device.idProduct in self.TOLINO_VISION_COLOR_PRODUCT_ID
|
||||||
|
|
||||||
def isTolinoDevice(self):
|
def isTolinoDevice(self):
|
||||||
return self.isShine5() or self.isShineColor() or self.isVisionColor()
|
return self.isShine5() or self.isShineColor() or self.isVisionColor()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user