aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-04-18 22:03:30 +0200
committerRiccardo Spagni <ric@spagni.net>2019-04-18 22:03:30 +0200
commit2267f110b280ffa2b64f1082532356bdad3c3b49 (patch)
tree37443d31248d4949bd0029c811567d6801e2bd44 /src
parentMerge pull request #5461 (diff)
parentdevice/trezor: button request callback fix (diff)
downloadmonero-2267f110b280ffa2b64f1082532356bdad3c3b49.tar.xz
Merge pull request #5463
fbbe75d7 device/trezor: button request callback fix (Dusan Klinec)
Diffstat (limited to 'src')
-rw-r--r--src/device_trezor/device_trezor_base.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/device_trezor/device_trezor_base.cpp b/src/device_trezor/device_trezor_base.cpp
index 58abde1d1..5adadbfc4 100644
--- a/src/device_trezor/device_trezor_base.cpp
+++ b/src/device_trezor/device_trezor_base.cpp
@@ -412,10 +412,11 @@ namespace trezor {
CHECK_AND_ASSERT_THROW_MES(msg, "Empty message");
MDEBUG("on_button_request, code: " << msg->code());
+ TREZOR_CALLBACK(on_button_request, msg->code());
+
messages::common::ButtonAck ack;
write_raw(&ack);
- TREZOR_CALLBACK(on_button_request, msg->code());
resp = read_raw();
}