From e4f6382fce4ce8009e846f15ef7747c0925ecbbd Mon Sep 17 00:00:00 2001 From: xlemmingx Date: Mon, 3 Nov 2025 16:35:53 +0100 Subject: [PATCH] remove confirmation retry increase --- src/lora/lorawan.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/lora/lorawan.c b/src/lora/lorawan.c index 0ccbd1c..26ca24d 100644 --- a/src/lora/lorawan.c +++ b/src/lora/lorawan.c @@ -194,18 +194,13 @@ void init_lorawan() /* Set to SF12 (DR0) for maximum range - good for 5-10min intervals */ int ret = lorawan_set_datarate(LORAWAN_DR_0); - if (ret == 0) { + if (ret == 0) + { LOG_INF("✓ Datarate set to DR0 (SF12) for maximum range"); - } else { - LOG_WRN("Could not set datarate (ADR may override): %d", ret); } - - /* Increase confirmation retries for better reliability */ - ret = lorawan_set_conf_msg_tries(8); - if (ret == 0) { - LOG_INF("✓ Confirmation retries set to 8 for better reliability"); - } else { - LOG_WRN("Could not set confirmation retries: %d", ret); + else + { + LOG_WRN("Could not set datarate (ADR may override): %d", ret); } /* Print all LoRaWAN configuration for debugging */