device/trezor: button request callback fix

This commit is contained in:
Dusan Klinec 2019-04-18 18:04:45 +02:00
parent 7973fb6a69
commit fbbe75d75f
No known key found for this signature in database
GPG key ID: 6337E118CCBCE103

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