Browse Source
Fix FEM/LNA enbaled by default for Heltec T096, Heltec Wireless Tracker v2
Should only really be disabled when it causes issues.
pull/2340/head
Wessel Nieboer
2 months ago
No known key found for this signature in database
GPG Key ID: 929C8E45E33B5FD2
4 changed files with
4 additions and
4 deletions
-
variants/heltec_t096/LoRaFEMControl.cpp
-
variants/heltec_t096/LoRaFEMControl.h
-
variants/heltec_tracker_v2/LoRaFEMControl.cpp
-
variants/heltec_tracker_v2/LoRaFEMControl.h
|
|
@ -9,7 +9,7 @@ void LoRaFEMControl::init(void) |
|
|
pinMode(P_LORA_KCT8103L_PA_CSD, OUTPUT); |
|
|
pinMode(P_LORA_KCT8103L_PA_CSD, OUTPUT); |
|
|
digitalWrite(P_LORA_KCT8103L_PA_CSD, HIGH); |
|
|
digitalWrite(P_LORA_KCT8103L_PA_CSD, HIGH); |
|
|
pinMode(P_LORA_KCT8103L_PA_CTX, OUTPUT); |
|
|
pinMode(P_LORA_KCT8103L_PA_CTX, OUTPUT); |
|
|
digitalWrite(P_LORA_KCT8103L_PA_CTX, HIGH); |
|
|
digitalWrite(P_LORA_KCT8103L_PA_CTX, lna_enabled ? LOW : HIGH); |
|
|
setLnaCanControl(true); |
|
|
setLnaCanControl(true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -16,6 +16,6 @@ class LoRaFEMControl |
|
|
void setLnaCanControl(bool can_control) { lna_can_control = can_control; } |
|
|
void setLnaCanControl(bool can_control) { lna_can_control = can_control; } |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
bool lna_enabled = false; |
|
|
bool lna_enabled = true; |
|
|
bool lna_can_control = false; |
|
|
bool lna_can_control = false; |
|
|
}; |
|
|
}; |
|
|
|
|
|
@ -14,7 +14,7 @@ void LoRaFEMControl::init(void) |
|
|
pinMode(P_LORA_KCT8103L_PA_CSD, OUTPUT); |
|
|
pinMode(P_LORA_KCT8103L_PA_CSD, OUTPUT); |
|
|
digitalWrite(P_LORA_KCT8103L_PA_CSD, HIGH); |
|
|
digitalWrite(P_LORA_KCT8103L_PA_CSD, HIGH); |
|
|
pinMode(P_LORA_KCT8103L_PA_CTX, OUTPUT); |
|
|
pinMode(P_LORA_KCT8103L_PA_CTX, OUTPUT); |
|
|
digitalWrite(P_LORA_KCT8103L_PA_CTX, HIGH); |
|
|
digitalWrite(P_LORA_KCT8103L_PA_CTX, lna_enabled ? LOW : HIGH); |
|
|
setLnaCanControl(true); |
|
|
setLnaCanControl(true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -16,6 +16,6 @@ class LoRaFEMControl |
|
|
void setLnaCanControl(bool can_control) { lna_can_control = can_control; } |
|
|
void setLnaCanControl(bool can_control) { lna_can_control = can_control; } |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
bool lna_enabled = false; |
|
|
bool lna_enabled = true; |
|
|
bool lna_can_control = false; |
|
|
bool lna_can_control = false; |
|
|
}; |
|
|
}; |
|
|
|