diff --git a/plugins/trezor/clientbase.py b/plugins/trezor/clientbase.py index 1eec31a53..a8e77672e 100644 --- a/plugins/trezor/clientbase.py +++ b/plugins/trezor/clientbase.py @@ -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): diff --git a/plugins/trezor/plugin.py b/plugins/trezor/plugin.py index 2f874f94a..14270ceb0 100644 --- a/plugins/trezor/plugin.py +++ b/plugins/trezor/plugin.py @@ -126,6 +126,7 @@ class TrezorCompatiblePlugin(HW_PluginBase): msg = (_('Outdated %s firmware for device labelled %s. Please ' 'download the updated firmware from %s') % (self.device, client.label(), self.firmware_URL)) + self.print_error(msg) handler.show_error(msg) return None