aboutsummaryrefslogtreecommitdiff
path: root/src/device_trezor/device_trezor_base.cpp
diff options
context:
space:
mode:
authorDusan Klinec <dusan.klinec@gmail.com>2019-04-18 18:04:45 +0200
committerDusan Klinec <dusan.klinec@gmail.com>2019-04-18 18:04:54 +0200
commitfbbe75d75faaa97b614a9d667050ecfb43310f6f (patch)
tree95c8f32aeb6cb497b343b7536bc33e152b9491da /src/device_trezor/device_trezor_base.cpp
parentMerge pull request #5415 (diff)
downloadmonero-fbbe75d75faaa97b614a9d667050ecfb43310f6f.tar.xz
device/trezor: button request callback fix
Diffstat (limited to 'src/device_trezor/device_trezor_base.cpp')
-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();
}