From ec585f34e8ec42623b654b71920b3949583cea79 Mon Sep 17 00:00:00 2001 From: Florent Date: Thu, 13 Nov 2025 22:22:44 +0100 Subject: [PATCH] bug with all commands begining with s --- src/meshcore_cli/meshcore_cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/meshcore_cli/meshcore_cli.py b/src/meshcore_cli/meshcore_cli.py index d0a0e6b..6f93996 100644 --- a/src/meshcore_cli/meshcore_cli.py +++ b/src/meshcore_cli/meshcore_cli.py @@ -1158,7 +1158,7 @@ async def process_contact_chat_line(mc, contact, line): print("") return True - if line.startswith("sleep") or line.startswith("s"): + if line.startswith("sleep ") or line.startswith("s "): try: sleeptime = int(line.split(" ",2)[1]) cmd_pos = 2 @@ -1219,6 +1219,8 @@ async def process_contact_chat_line(mc, contact, line): if line.startswith("set timeout "): cmds=line.split(" ") + #args = ["contact_timeout", contact['adv_name'], cmds[2]] + #await process_cmds(mc, args) contact["timeout"] = float(cmds[2]) return True