fix issue when sending a cli cmd to room or sensor

This commit is contained in:
Florent
2026-08-25 15:25:13 -04:00
parent d2aca51296
commit dd5502b968
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "meshcore" name = "meshcore"
version = "2.3.9" version = "2.3.9.1"
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" },
+3 -3
View File
@@ -78,10 +78,10 @@ class MessagingCommands(CommandHandlerBase):
dst_type = AdvType.REPEATER.value dst_type = AdvType.REPEATER.value
cmd_data = bytearray([CommandType.SEND_TXT_MSG.value]) cmd_data = bytearray([CommandType.SEND_TXT_MSG.value])
if dst_type == AdvType.REPEATER.value : if dst_type == AdvType.CHAT.value :
cmd_data.append(TxtType.CLI_DATA.value)
else:
cmd_data.append(TxtType.CLI_CMD.value) cmd_data.append(TxtType.CLI_CMD.value)
else:
cmd_data.append(TxtType.CLI_DATA.value)
cmd_data.append(0) # first and only attempt cmd_data.append(0) # first and only attempt
cmd_data.extend(timestamp.to_bytes(4, "little")) cmd_data.extend(timestamp.to_bytes(4, "little"))
cmd_data.extend(dst_bytes) cmd_data.extend(dst_bytes)