v1.0.15: Default TX power to board PA_MAX_OUTPUT

- Add PA_MAX_OUTPUT define: V3=22, V4=28, default=20
- Captive portal TX power field now defaults to board max
This commit is contained in:
James L
2026-02-28 15:21:34 -05:00
parent a3ea18b4a7
commit 3a511e8a11
2 changed files with 7 additions and 1 deletions

View File

@@ -379,6 +379,8 @@
#define HAS_BUSY true #define HAS_BUSY true
#define DIO2_AS_RF_SWITCH true #define DIO2_AS_RF_SWITCH true
#define PA_MAX_OUTPUT 22
// Following pins are for the SX1262 // Following pins are for the SX1262
const int pin_cs = 8; const int pin_cs = 8;
const int pin_busy = 13; const int pin_busy = 13;
@@ -935,6 +937,10 @@
#define OCP_TUNED 0x18 #define OCP_TUNED 0x18
#endif #endif
#ifndef PA_MAX_OUTPUT
#define PA_MAX_OUTPUT 20
#endif
#ifndef NP_M #ifndef NP_M
#define NP_M 0.15 #define NP_M 0.15
#endif #endif

View File

@@ -79,7 +79,7 @@ static void config_send_html() {
int cur_sf = lora_sf; int cur_sf = lora_sf;
int cur_cr = lora_cr; int cur_cr = lora_cr;
int cur_txp = lora_txp; int cur_txp = lora_txp;
if (cur_txp == 0xFF) cur_txp = 28; // Default TX power if (cur_txp == 0xFF) cur_txp = PA_MAX_OUTPUT; // Default to board max
// Default frequency if not set // Default frequency if not set
if (cur_freq == 0) cur_freq = 914875000; // 914.875 MHz default if (cur_freq == 0) cur_freq = 914875000; // 914.875 MHz default