apps.debug: implement DebugLinkDecision

This commit is contained in:
Jan Pochyla 2016-11-15 13:48:52 +01:00
parent 39b3ecb224
commit 3373ecf128
1 changed files with 3 additions and 2 deletions

View File

@ -5,8 +5,9 @@ from trezor.messages.wire_types import \
async def dispatch_DebugLinkDecision(msg, session_id):
# TODO: apply button decision from msg.yes_no
pass
from trezor.ui.confirm import CONFIRMED, CANCELLED
from ..common.confirm import future
future.resolve(CONFIRMED if msg.yes_no else CANCELLED)
async def dispatch_DebugLinkGetState(msg, session_id):