Skip to content

Commit 66fe9ac

Browse files
committed
Fix FEM/LNA enbaled by default for Heltec T096, Heltec Wireless Tracker v2
Should only really be disabled when it causes issues.
1 parent cc6139b commit 66fe9ac

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

variants/heltec_t096/LoRaFEMControl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ void LoRaFEMControl::init(void)
99
pinMode(P_LORA_KCT8103L_PA_CSD, OUTPUT);
1010
digitalWrite(P_LORA_KCT8103L_PA_CSD, HIGH);
1111
pinMode(P_LORA_KCT8103L_PA_CTX, OUTPUT);
12-
digitalWrite(P_LORA_KCT8103L_PA_CTX, HIGH);
12+
digitalWrite(P_LORA_KCT8103L_PA_CTX, lna_enabled ? LOW : HIGH);
1313
setLnaCanControl(true);
1414
}
1515

variants/heltec_t096/LoRaFEMControl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ class LoRaFEMControl
1616
void setLnaCanControl(bool can_control) { lna_can_control = can_control; }
1717

1818
private:
19-
bool lna_enabled = false;
19+
bool lna_enabled = true;
2020
bool lna_can_control = false;
2121
};

variants/heltec_tracker_v2/LoRaFEMControl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void LoRaFEMControl::init(void)
1414
pinMode(P_LORA_KCT8103L_PA_CSD, OUTPUT);
1515
digitalWrite(P_LORA_KCT8103L_PA_CSD, HIGH);
1616
pinMode(P_LORA_KCT8103L_PA_CTX, OUTPUT);
17-
digitalWrite(P_LORA_KCT8103L_PA_CTX, HIGH);
17+
digitalWrite(P_LORA_KCT8103L_PA_CTX, lna_enabled ? LOW : HIGH);
1818
setLnaCanControl(true);
1919
}
2020

variants/heltec_tracker_v2/LoRaFEMControl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ class LoRaFEMControl
1616
void setLnaCanControl(bool can_control) { lna_can_control = can_control; }
1717

1818
private:
19-
bool lna_enabled = false;
19+
bool lna_enabled = true;
2020
bool lna_can_control = false;
2121
};

0 commit comments

Comments
 (0)