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)