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
+3 -3
View File
@@ -78,10 +78,10 @@ class MessagingCommands(CommandHandlerBase):
dst_type = AdvType.REPEATER.value
cmd_data = bytearray([CommandType.SEND_TXT_MSG.value])
if dst_type == AdvType.REPEATER.value :
cmd_data.append(TxtType.CLI_DATA.value)
else:
if dst_type == AdvType.CHAT.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.extend(timestamp.to_bytes(4, "little"))
cmd_data.extend(dst_bytes)