Update system.py

This commit is contained in:
SpudGunMan
2024-10-08 20:52:51 -07:00
parent 6d71e97590
commit af2d6c4f97
+3 -1
View File
@@ -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)