Skip to content

Commit ec585f3

Browse files
committed
bug with all commands begining with s
1 parent fb849f8 commit ec585f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/meshcore_cli/meshcore_cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ async def process_contact_chat_line(mc, contact, line):
11581158
print("")
11591159
return True
11601160

1161-
if line.startswith("sleep") or line.startswith("s"):
1161+
if line.startswith("sleep ") or line.startswith("s "):
11621162
try:
11631163
sleeptime = int(line.split(" ",2)[1])
11641164
cmd_pos = 2
@@ -1219,6 +1219,8 @@ async def process_contact_chat_line(mc, contact, line):
12191219

12201220
if line.startswith("set timeout "):
12211221
cmds=line.split(" ")
1222+
#args = ["contact_timeout", contact['adv_name'], cmds[2]]
1223+
#await process_cmds(mc, args)
12221224
contact["timeout"] = float(cmds[2])
12231225
return True
12241226

0 commit comments

Comments
 (0)