Merge pull request #5463

fbbe75d7 device/trezor: button request callback fix (Dusan Klinec)
This commit is contained in:
Riccardo Spagni 2019-04-18 22:03:30 +02:00
commit 2267f110b2
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}