From b7df9d05a700b2204bbf9a3c2939ef3e9c35eefb Mon Sep 17 00:00:00 2001 From: Nestpebble <116762865+Nestpebble@users.noreply.github.com> Date: Mon, 16 Sep 2024 00:42:59 +0100 Subject: [PATCH] Add time.sleep(splitDelay) between split messages --- modules/system.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/system.py b/modules/system.py index b3cda18..6aa3cc3 100644 --- a/modules/system.py +++ b/modules/system.py @@ -472,6 +472,7 @@ def send_message(message, ch, nodeid=0, nodeInt=1): interface1.sendText(text=m, channelIndex=ch, destinationId=nodeid) if nodeInt == 2: interface2.sendText(text=m, channelIndex=ch, destinationId=nodeid) + time.sleep(splitDelay) # wait an amout of time between sending each split message else: # message is less than MESSAGE_CHUNK_SIZE characters if nodeid == 0: # Send to channel