From 5e4663d05818a3015aa6e8695b567f4f5a609a81 Mon Sep 17 00:00:00 2001 From: Florent Date: Sun, 8 Mar 2026 08:11:45 -0400 Subject: [PATCH] there is still a strange bug with path_len --- pyproject.toml | 2 +- src/meshcore/commands/contact.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index eb0adc7..536310f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "meshcore" -version = "2.2.29" +version = "2.2.30" authors = [ { name="Florent de Lamotte", email="florent@frizoncorrea.fr" }, { name="Alex Wolden", email="awolden@gmail.com" }, diff --git a/src/meshcore/commands/contact.py b/src/meshcore/commands/contact.py index 4240aba..ac723ea 100644 --- a/src/meshcore/commands/contact.py +++ b/src/meshcore/commands/contact.py @@ -120,7 +120,9 @@ class ContactCommands(CommandHandlerBase): res = await self.send_device_query() if not res is None and res.type != EventType.ERROR: if "path_hash_mode" in res.payload: - path_hash_size = res.payload["path_hash_mode"] + 1 + path_hash_mode = res.payload["path_hash_mode"] + else: + path_hash_mode = 0 else: if ":" in path: # remove as it has been specified in args path = path.split(":")[0].replace(":","")