Added Heltec V4.3 support/FEM autodetection

This commit is contained in:
2026-04-08 22:00:43 +03:00
parent 2997cc34dd
commit 4900bd4d1e
9 changed files with 130 additions and 235 deletions

View File

@@ -1322,7 +1322,13 @@ int getTxPower() {
}
#if HAS_LORA_PA
const int tx_gain[PA_GAIN_POINTS] = {PA_GAIN_VALUES};
#if LORA_PA_AUTO_DETECT
static const int gc1109_tx_gain[PA_GAIN_POINTS] = {PA_GC1109_GAIN_VALUES};
static const int kct8103l_tx_gain[PA_GAIN_POINTS] = {PA_KCT8103L_GAIN_VALUES};
const int* tx_gain = sx126x_modem.isKCT8103L() ? kct8103l_tx_gain : gc1109_tx_gain;
#else
const int tx_gain[PA_GAIN_POINTS] = {PA_GAIN_VALUES};
#endif
#endif
int map_target_power_to_modem_output(int target_tx_power) {