mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-07 17:32:52 +02:00
Update system.py
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user