From b878f05b5c88152bfed0ac24fde61ca073617c19 Mon Sep 17 00:00:00 2001 From: Zjamnik Date: Tue, 24 Jun 2025 23:09:32 +0200 Subject: [PATCH] sleep added --- run_controller_cli.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/run_controller_cli.py b/run_controller_cli.py index c84597b..5d0b7ea 100755 --- a/run_controller_cli.py +++ b/run_controller_cli.py @@ -264,6 +264,15 @@ def _register_commands_with_controller_state(controller_state, cli): cli.add_command(nfc.__name__, nfc) + #sleep + async def sleep(*args): + """ + sleep - waits specified amount of seconds + """ + await asyncio.sleep(args[0]) + + cli.add_command(sleep.__name__, sleep) + async def _main(args): # parse the spi flash