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}")