fix(radio): drop companion FEM wiring; wire t096 + tracker_v2 FEM overrides

companion_radio has its own NodePrefs without radio_fem_rxgain (matching
upstream, which doesn't wire companion either), so the startup call added in
e905451d broke every companion build:
  MyMesh.cpp:973: error: 'struct NodePrefs' has no member named 'radio_fem_rxgain'
It went unnoticed behind the pre-existing companion build failures.

Also port upstream's FEM LNA overrides for heltec_t096 and heltec_tracker_v2
verbatim (board overrides + isLNAEnabled/const getters), so all three boards
upstream wires now match instead of reporting unsupported. Both variant files
compile; those targets still fail overall on the pre-existing non-observer
MQTT-source build-config issue (unchanged with this work stashed).
This commit is contained in:
agessaman committed 2026-07-09 12:25:23 -07:00
1 parent ae9c01f0b7
commit b2e79d4735
7 files changed
+48 -3

No files matched your search

+2 -1
View File
@@ -970,7 +970,8 @@ void MyMesh::begin(bool has_display) {
radio_driver.setRxBoostedGainMode(_prefs.rx_boosted_gain);
MESH_DEBUG_PRINTLN("RX Boosted Gain Mode: %s",
radio_driver.getRxBoostedGainMode() ? "Enabled" : "Disabled");
board.setLoRaFemLnaEnabled(_prefs.radio_fem_rxgain); // LoRa FEM LNA (FEM boards only)
// NOTE: no FEM LNA wiring here — companion has its own NodePrefs without
// radio_fem_rxgain, matching upstream (which also doesn't wire companion).
}
const char *MyMesh::getNodeName() {