]> git.tnoah.ca Git - lora-radio.git/commitdiff
Apply downstream patch from @jacobeva. Fixes TX power output on RAK boards.
authorMark Qvist <mark@unsigned.io>
Sun, 26 May 2024 07:47:54 +0000 (09:47 +0200)
committerMark Qvist <mark@unsigned.io>
Sun, 26 May 2024 07:47:54 +0000 (09:47 +0200)
Utilities.h

index 090e5d5ffa984629e3bb0a9974a9ec8c37aeb19c..c70568b7030781e3f533a28cb75ede425eb52599 100644 (file)
@@ -1062,6 +1062,9 @@ int getTxPower() {
 
 void setTXPower() {
        if (radio_online) {
+               if (model == MODEL_11) LoRa->setTxPower(lora_txp, PA_OUTPUT_RFO_PIN);
+               if (model == MODEL_12) LoRa->setTxPower(lora_txp, PA_OUTPUT_RFO_PIN);
+
                if (model == MODEL_A1) LoRa->setTxPower(lora_txp, PA_OUTPUT_PA_BOOST_PIN);
                if (model == MODEL_A2) LoRa->setTxPower(lora_txp, PA_OUTPUT_PA_BOOST_PIN);
                if (model == MODEL_A3) LoRa->setTxPower(lora_txp, PA_OUTPUT_RFO_PIN);