Display version on Kobo unsupported firmware message

When calibre shows the message that says the Kobo device is not
supported, the firmware version and database version on the device is
not displayed. Adding this to make support a little easier.
This commit is contained in:
David Forrester 2013-10-03 15:20:32 +10:00 committed by Kovid Goyal
parent 11374b1520
commit d4d98e3f2a

View File

@ -63,7 +63,7 @@ class KOBO(USBMS):
gui_name = 'Kobo Reader'
description = _('Communicate with the Kobo Reader')
author = 'Timothy Legge and David Forrester'
version = (2, 1, 3)
version = (2, 1, 4)
dbversion = 0
fwversion = 0
@ -661,6 +661,8 @@ class KOBO(USBMS):
' "Attempt to support newer firmware" option.'
' Doing so may require you to perform a factory reset of'
' your Kobo.'
'\nDevice database version: %s.'
'\nDevice firmware version: %s' % (self.dbversion, self.fwversion)
),
UserFeedback.WARN)
@ -2834,6 +2836,8 @@ class KOBOTOUCH(KOBO):
' "Attempt to support newer firmware" option.'
' Doing so may require you to perform a factory reset of'
' your Kobo.'
'\nDevice database version: %s.'
'\nDevice firmware version: %s' % (self.dbversion, self.fwversion)
),
UserFeedback.WARN)