aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-06-08 14:03:57 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-06-08 14:03:57 -0500
commit09667700e8ea1a51052a89f382d36ed87e9cb749 (patch)
tree6423009deb7bfa9f5608ade82f3e287b4c27175b
parentMerge pull request #6514 (diff)
parenttrezor: add new firmware version support (diff)
downloadmonero-09667700e8ea1a51052a89f382d36ed87e9cb749.tar.xz
Merge pull request #6519
ab44293 trezor: add new firmware version support (ph4r05)
-rw-r--r--src/device_trezor/device_trezor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/device_trezor/device_trezor.cpp b/src/device_trezor/device_trezor.cpp
index 8bde1cb75..367327c70 100644
--- a/src/device_trezor/device_trezor.cpp
+++ b/src/device_trezor/device_trezor.cpp
@@ -678,8 +678,10 @@ namespace trezor {
throw exc::TrezorException("Trezor firmware 2.0.10 and lower are not supported. Please update.");
}
- // default client version, higher versions check will be added
unsigned client_version = 1;
+ if (trezor_version >= pack_version(2, 3, 1)){
+ client_version = 3;
+ }
#ifdef WITH_TREZOR_DEBUGGING
// Override client version for tests