As a Router

This commit is contained in:
Ben Meadors 2024-10-30 06:02:59 -05:00
parent 0726eaa678
commit 5f6e19d971
2 changed files with 5 additions and 5 deletions

View File

@ -8,15 +8,15 @@ plugins:
uri: https://github.com/trunk-io/plugins
lint:
enabled:
- trufflehog@3.82.12
- trufflehog@3.82.13
- yamllint@1.35.1
- bandit@1.7.10
- checkov@3.2.256
- checkov@3.2.269
- terrascan@1.19.9
- trivy@0.55.2
- trivy@0.56.2
#- trufflehog@3.63.2-rc0
- taplo@0.9.3
- ruff@0.7.0
- ruff@0.7.1
- isort@5.13.2
- markdownlint@0.42.0
- oxipng@9.1.2

View File

@ -271,7 +271,7 @@ uint32_t RadioInterface::getTxDelayMsecWeighted(float snr)
if (config.device.role == meshtastic_Config_DeviceConfig_Role_ROUTER ||
config.device.role == meshtastic_Config_DeviceConfig_Role_REPEATER) {
delay = random(0, 2 * CWsize) * slotTimeMsec;
LOG_DEBUG("rx_snr found in packet. As a router, setting tx delay:%d", delay);
LOG_DEBUG("rx_snr found in packet. Router: setting tx delay:%d", delay);
} else {
// offset the maximum delay for routers: (2 * CWmax * slotTimeMsec)
delay = (2 * CWmax * slotTimeMsec) + random(0, pow(2, CWsize)) * slotTimeMsec;