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
async def return_layout_change(ctx: wire.Context) -> None: content = await layout_change_chan.take() await ctx.write(DebugLinkLayout(lines=content))