Update mesh_bot.py

This commit is contained in:
Kelly
2024-07-25 13:17:13 -07:00
committed by GitHub
parent 53b986da36
commit 364224faea
+2
View File
@@ -273,6 +273,8 @@ def onReceive(packet, interface):
# check if repeater is enabled and the other interface is enabled
if repeater_enabled and interface2_enabled:
# repeat the message on the other device
# wait a 700ms to avoid message collision from lora-ack.
time.sleep(0.7)
rMsg = (f"{message_string} From:{get_name_from_number(message_from_id, 'short', rxNode)}")
# if channel found in the repeater list repeat the message
if str(channel_number) in repeater_channels: