From af2d6c4f97c0cae0ec76b379bc2ac88e44315d91 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 8 Oct 2024 20:52:51 -0700 Subject: [PATCH] Update system.py --- modules/system.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/system.py b/modules/system.py index 7910faa..1311a51 100644 --- a/modules/system.py +++ b/modules/system.py @@ -489,8 +489,10 @@ def send_message(message, ch, nodeid=0, nodeInt=1): # Throttle the message sending to prevent spamming the device if (message_list.index(m)+1) % 4 == 0: - logger.warning(f"System: throttling rate Interface{nodeInt} on {chunkOf}") time.sleep(1) + if (message_list.index(m)+1) % 5 == 0: + logger.warning(f"System: throttling rate Interface{nodeInt} on {chunkOf}") + # wait an amout of time between sending each split message time.sleep(splitDelay)