there is still a strange bug with path_len

This commit is contained in:
Florent
2026-03-08 08:11:45 -04:00
parent 01471c0d24
commit 5e4663d058
2 changed files with 4 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "meshcore" name = "meshcore"
version = "2.2.29" version = "2.2.30"
authors = [ authors = [
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" }, { name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
{ name="Alex Wolden", email="awolden@gmail.com" }, { name="Alex Wolden", email="awolden@gmail.com" },

View File

@@ -120,7 +120,9 @@ class ContactCommands(CommandHandlerBase):
res = await self.send_device_query() res = await self.send_device_query()
if not res is None and res.type != EventType.ERROR: if not res is None and res.type != EventType.ERROR:
if "path_hash_mode" in res.payload: 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: else:
if ":" in path: # remove as it has been specified in args if ":" in path: # remove as it has been specified in args
path = path.split(":")[0].replace(":","") path = path.split(":")[0].replace(":","")