From d57c48a97fa64276aef10aa3c8b1b81d602342dc Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Sun, 6 Oct 2019 19:05:38 +0200 Subject: [PATCH] bugfix rcommand set_loradr(): keep TX Power --- src/rcommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rcommand.cpp b/src/rcommand.cpp index e8b9f3da..4290555c 100644 --- a/src/rcommand.cpp +++ b/src/rcommand.cpp @@ -191,7 +191,7 @@ void set_loradr(uint8_t val[]) { if (validDR(val[0])) { cfg.loradr = val[0]; ESP_LOGI(TAG, "Remote command: set LoRa Datarate to %d", cfg.loradr); - LMIC_setDrTxpow(assertDR(cfg.loradr), cfg.txpower); + LMIC_setDrTxpow(assertDR(cfg.loradr), KEEP_TXPOW); ESP_LOGI(TAG, "Radio parameters now %s / %s / %s", getSfName(updr2rps(LMIC.datarate)), getBwName(updr2rps(LMIC.datarate)),