Skip to content

Commit

Permalink
Bump supported fw version in kobo/tolino driver
Browse files Browse the repository at this point in the history
New Tolino Shine 5 firmware 5.4.197982 still uses db version 190.
Using new USB ids for detecting Tolino models.
  • Loading branch information
beedaddy committed Nov 13, 2024
1 parent 0c86a79 commit 08e7089
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/calibre/devices/kobo/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ class KOBOTOUCH(KOBO):
# 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
# 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.
# Not all are used, but this feels a good place to record it.
min_fwversion_shelves = (2, 0, 0)
Expand Down Expand Up @@ -3695,10 +3695,10 @@ def isSage(self):
return self.detected_device.idProduct in self.SAGE_PRODUCT_ID

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):
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):
return self.detected_device.idProduct in self.TOUCH_PRODUCT_ID
Expand All @@ -3707,7 +3707,7 @@ def isTouch2(self):
return self.detected_device.idProduct in self.TOUCH2_PRODUCT_ID

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):
return self.isShine5() or self.isShineColor() or self.isVisionColor()
Expand Down

0 comments on commit 08e7089

Please sign in to comment.