debug hop limit

This commit is contained in:
medentem 2025-01-07 14:37:42 -06:00
parent 807dc327d6
commit 163f1de6aa

View File

@ -493,10 +493,12 @@ void NodeDB::installDefaultConfig(bool preserveKey = false)
#else
config.lora.modem_preset = meshtastic_Config_LoRaConfig_ModemPreset_LONG_FAST;
#endif
config.lora.hop_limit = HOP_RELIABLE;
#ifdef USERPREFS_USE_COVERAGE_FILTER
config.lora.hop_limit = HOP_MAX;
#else
config.lora.hop_limit = HOP_RELIABLE;
#endif
LOG_DEBUG("Hop Limit set to %x", config.lora.hop_limit);
#ifdef USERPREFS_CONFIG_LORA_IGNORE_MQTT
config.lora.ignore_mqtt = USERPREFS_CONFIG_LORA_IGNORE_MQTT;
#else