From 8edd853086b60ab72c17cc49ee2cbda0c9a402db Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 25 Jul 2024 22:39:30 -0700 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesh_bot.py b/mesh_bot.py index c483bbc..6928daf 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -173,6 +173,8 @@ def onReceive(packet, interface): msg = bbs_check_dm(message_from_id) if msg: + # wait a 700ms to avoid message collision from lora-ack. + time.sleep(0.7) print(f"{log_timestamp()} System: BBS DM Found: {msg[1]} For: {get_name_from_number(message_from_id, 'long', rxNode)}") message = "Mail: " + msg[1] + " From: " + get_name_from_number(msg[2], 'long', rxNode) bbs_delete_dm(msg[0], msg[1])