mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-09-27 04:58:09 +00:00
pager: fix LR1121 TX power default and RX-boosted-gain gating
Boot TX power was left at a conservative 10dBm (Heltec V4's pattern) with no way to raise it, unlike the T-Deck which boots straight at the chip's real 22dBm ceiling. On hardware this was silently degrading outbound range: adverts/DMs sent from the pager were unreliable while inbound reception was fine, since the far node's own TX power was unaffected. 22dBm is confirmed as this chip's actual sub-GHz HP-PA ceiling via RadioLib's LR1120::checkOutputPower() (LR1121 inherits it) and matches trail-mate's own working config for this board. Also widen the three RX-boosted-gain gates in MyMesh.cpp/DataStore.cpp that only checked USE_SX1262/USE_SX1268 to include USE_LR1121 -- CustomLR1121Wrapper already implements setRxBoostedGainMode/ getRxBoostedGainMode, so the setting was silently a no-op for this radio. Signed-off-by: Tesso M Costa <tesso.martins@gmail.com>
This commit is contained in:
+1
-1
@@ -261,7 +261,7 @@ void DataStore::loadPrefs(NodePrefs& prefs, double& node_lat, double& node_lon)
|
||||
namespace {
|
||||
|
||||
void default_rx_boosted_gain_pref(uint8_t& out) {
|
||||
#if defined(USE_SX1262) || defined(USE_SX1268) || defined(SX126X_RX_BOOSTED_GAIN)
|
||||
#if defined(USE_SX1262) || defined(USE_SX1268) || defined(USE_LR1121) || defined(SX126X_RX_BOOSTED_GAIN)
|
||||
#ifdef SX126X_RX_BOOSTED_GAIN
|
||||
out = (SX126X_RX_BOOSTED_GAIN != 0) ? 1 : 0;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user