From e08a82ec399168d05b22a48366f323d0b81c6f07 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sat, 18 Oct 2025 08:42:48 -0700 Subject: [PATCH] Update system.py --- modules/system.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/system.py b/modules/system.py index 6b0b178..4ab12da 100644 --- a/modules/system.py +++ b/modules/system.py @@ -820,7 +820,9 @@ def send_raw_bytes(nodeid, raw_bytes, nodeInt=1, channel=0, portnum=256, want_a channelIndex=channel, wantAck=want_ack ) + # Throttle the message sending to prevent spamming the device logger.debug(f"Sent raw bytes to {nodeid} on portnum {portnum} via Device{nodeInt}") + time.sleep(responseDelay) return True except Exception as e: logger.error(f"System: Error sending raw bytes to {nodeid} via Device{nodeInt}: {e} bytes: {raw_bytes}")