Change atleast_version to return 1 or 0
This commit is contained in:
parent
d61ccd4275
commit
32af57e2c9
@ -212,7 +212,7 @@ class TrezorClientBase(GuiMixin, PrintError):
|
||||
return (f.major_version, f.minor_version, f.patch_version)
|
||||
|
||||
def atleast_version(self, major, minor=0, patch=0):
|
||||
return cmp(self.firmware_version(), (major, minor, patch))
|
||||
return cmp(self.firmware_version(), (major, minor, patch)) >= 0
|
||||
|
||||
@staticmethod
|
||||
def wrapper(func):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user