mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-03 12:20:43 +00:00
Merge branch 'master' into 2.7-MiscFixes-Week1
This commit is contained in:
commit
7ef8067b87
@ -104,7 +104,7 @@ lib_deps =
|
|||||||
[radiolib_base]
|
[radiolib_base]
|
||||||
lib_deps =
|
lib_deps =
|
||||||
# renovate: datasource=custom.pio depName=RadioLib packageName=jgromes/library/RadioLib
|
# renovate: datasource=custom.pio depName=RadioLib packageName=jgromes/library/RadioLib
|
||||||
jgromes/RadioLib@7.1.2
|
jgromes/RadioLib@7.2.0
|
||||||
|
|
||||||
[device-ui_base]
|
[device-ui_base]
|
||||||
lib_deps =
|
lib_deps =
|
||||||
|
@ -61,12 +61,17 @@ class Default
|
|||||||
throttlingFactor = 0.04;
|
throttlingFactor = 0.04;
|
||||||
else if (config.lora.use_preset && config.lora.modem_preset == meshtastic_Config_LoRaConfig_ModemPreset_MEDIUM_FAST)
|
else if (config.lora.use_preset && config.lora.modem_preset == meshtastic_Config_LoRaConfig_ModemPreset_MEDIUM_FAST)
|
||||||
throttlingFactor = 0.02;
|
throttlingFactor = 0.02;
|
||||||
else if (config.lora.use_preset && config.lora.modem_preset == meshtastic_Config_LoRaConfig_ModemPreset_SHORT_SLOW)
|
|
||||||
throttlingFactor = 0.01;
|
|
||||||
else if (config.lora.use_preset &&
|
else if (config.lora.use_preset &&
|
||||||
IS_ONE_OF(config.lora.modem_preset, meshtastic_Config_LoRaConfig_ModemPreset_SHORT_FAST,
|
IS_ONE_OF(config.lora.modem_preset, meshtastic_Config_LoRaConfig_ModemPreset_SHORT_FAST,
|
||||||
meshtastic_Config_LoRaConfig_ModemPreset_SHORT_TURBO))
|
meshtastic_Config_LoRaConfig_ModemPreset_SHORT_TURBO,
|
||||||
return 1.0; // Don't bother throttling for highest bandwidth presets
|
meshtastic_Config_LoRaConfig_ModemPreset_SHORT_SLOW))
|
||||||
|
throttlingFactor = 0.01;
|
||||||
|
|
||||||
|
#if USERPREFS_EVENT_MODE
|
||||||
|
// If we are in event mode, scale down the throttling factor
|
||||||
|
throttlingFactor = 0.04;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Scaling up traffic based on number of nodes over 40
|
// Scaling up traffic based on number of nodes over 40
|
||||||
int nodesOverForty = (numOnlineNodes - 40);
|
int nodesOverForty = (numOnlineNodes - 40);
|
||||||
return 1.0 + (nodesOverForty * throttlingFactor); // Each number of online node scales by 0.075 (default)
|
return 1.0 + (nodesOverForty * throttlingFactor); // Each number of online node scales by 0.075 (default)
|
||||||
|
Loading…
Reference in New Issue
Block a user