Added Heltec V4.3 support/FEM autodetection

This commit is contained in:
2026-04-26 14:08:23 +03:00
parent 0ef379595f
commit bc60028852
5 changed files with 146 additions and 26 deletions

View File

@@ -1586,7 +1586,7 @@ void serial_callback(uint8_t sbyte) {
if (txp > 13) txp = 13;
#endif
#else
if (txp > 17) txp = 17;
if (txp > 20) txp = 20;
#endif
lora_txp = txp;
@@ -2648,7 +2648,13 @@ void sleep_now() {
#if BOARD_MODEL == BOARD_HELTEC32_V4
headless_led_off();
headless_led_detach_pwm();
digitalWrite(LORA_PA_CPS, LOW);
#if LORA_PA_AUTO_DETECT
if (sx126x_modem.isKCT8103L()) {
digitalWrite(LORA_PA_CTX, LOW);
} else {
digitalWrite(LORA_PA_CPS, LOW);
}
#endif
digitalWrite(LORA_PA_CSD, LOW);
digitalWrite(LORA_PA_PWR_EN, LOW);
digitalWrite(Vext, HIGH);