mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Fix FEM/LNA enbaled by default for Heltec T096, Heltec Wireless Tracker v2
Should only really be disabled when it causes issues.
This commit is contained in:
parent
dee3e26ac0
commit
62ddb6b009
4 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue