mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
fixed discover trace for non-repeater
This commit is contained in:
parent
57f6cf5af9
commit
851bfb7ace
1 changed files with 6 additions and 1 deletions
|
|
@ -1135,7 +1135,12 @@ async def print_disc_trace_to (mc, contact):
|
||||||
|
|
||||||
for i in range(0, inp_l):
|
for i in range(0, inp_l):
|
||||||
elem = inp[2*i:2*(i+1)]
|
elem = inp[2*i:2*(i+1)]
|
||||||
trace = elem if trace == "" else f"{trace},{elem}"
|
if trace == "":
|
||||||
|
trace = elem
|
||||||
|
elif trace[-2:] != elem:
|
||||||
|
trace = f"{trace},{elem}"
|
||||||
|
|
||||||
|
logger.info(f"Trying {trace}")
|
||||||
|
|
||||||
await next_cmd(mc, ["trace", trace])
|
await next_cmd(mc, ["trace", trace])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue