forked from mirror/joycontrol
sleep added
This commit is contained in:
1 parent
18a09da1a0
commit
b878f05b5c
1 file changed
+9
@@ -264,6 +264,15 @@ def _register_commands_with_controller_state(controller_state, cli):
|
|||||||
|
|
||||||
cli.add_command(nfc.__name__, nfc)
|
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):
|
async def _main(args):
|
||||||
# parse the spi flash
|
# parse the spi flash
|
||||||
|
|||||||
Reference in new issue
Block a user