コード例 #1
0
ファイル: __init__.py プロジェクト: senlinms/trezor-firmware
    async def return_layout_change() -> None:
        content = await layout_change_chan.take()
        assert DEBUG_CONTEXT is not None
        if storage.layout_watcher is LAYOUT_WATCHER_LAYOUT:
            await DEBUG_CONTEXT.write(DebugLinkLayout(lines=content))
        else:
            from trezor.messages.DebugLinkState import DebugLinkState

            await DEBUG_CONTEXT.write(DebugLinkState(layout_lines=content))
        storage.layout_watcher = LAYOUT_WATCHER_NONE
コード例 #2
0
ファイル: __init__.py プロジェクト: wusanshou/trezor-firmware
 async def return_layout_change(ctx: wire.Context) -> None:
     content = await layout_change_chan.take()
     await ctx.write(DebugLinkLayout(lines=content))