From ed55377084f945d60f1987fe369422daad8d2b07 Mon Sep 17 00:00:00 2001 From: Florent de Lamotte Date: Tue, 11 Mar 2025 21:31:07 +0100 Subject: [PATCH] issue with contact upd --- mccli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mccli.py b/mccli.py index 302d0cd..bfd6a3c 100755 --- a/mccli.py +++ b/mccli.py @@ -496,8 +496,8 @@ class MeshCore: + bytes.fromhex(out_path_hex)\ + bytes.fromhex(adv_name_hex)\ + contact["last_advert"].to_bytes(4, 'little')\ - + contact["adv_lat"].to_bytes(4, 'little', signed=True)\ - + contact["adv_lon"].to_bytes(4, 'little', signed=True) + + int(contact["adv_lat"]*1e6).to_bytes(4, 'little', signed=True)\ + + int(contact["adv_lon"]*1e6).to_bytes(4, 'little', signed=True) return await self.send(data) async def send_login(self, dst, pwd):