]> git.tnoah.ca Git - lora-radio.git/commitdiff
Add todo
authorjacob.eva <x00010@disroot.org>
Tue, 9 Jul 2024 09:38:39 +0000 (10:38 +0100)
committerjacob.eva <x00010@disroot.org>
Tue, 9 Jul 2024 09:38:39 +0000 (10:38 +0100)
Utilities.h

index 8125203bfbc5d0785ae1ccfc9b442073a279f69c..58219f9826140ea0d0c0193cd158942d7eb586f2 100644 (file)
@@ -965,6 +965,9 @@ void set_implicit_length(uint8_t len) {
 }
 
 void setTXPower(RadioInterface* radio, int txp) {
+    // Todo, revamp this function. The current parameters for setTxPower are
+    // suboptimal, as some chips have power amplifiers which means that the max
+    // dBm is not always the same.
     if (model == MODEL_11) {
         if (interfaces[radio->getIndex()] == SX128X) {
             radio->setTxPower(txp, PA_OUTPUT_PA_BOOST_PIN);