mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-09-29 14:16:38 +00:00
Merge pull request #3203 from meshcore-dev/companion-fem-pref-fix
commenting out the load/save of the fem_ properties
This commit is contained in:
@@ -53,8 +53,12 @@ private:
|
|||||||
//def("cad", _parent->cad_enabled);
|
//def("cad", _parent->cad_enabled);
|
||||||
//def("int_thr", _parent->interference_threshold);
|
//def("int_thr", _parent->interference_threshold);
|
||||||
def("rxgain", _parent->rx_boosted_gain);
|
def("rxgain", _parent->rx_boosted_gain);
|
||||||
|
#if 0
|
||||||
|
// NOTE: these cannot be set (yet) so don't load/save until we can.
|
||||||
|
// also, fem_rxgain WAS mapped to wrong JSON property previously
|
||||||
def("fem_rxgain", _parent->radio_fem_rxgain);
|
def("fem_rxgain", _parent->radio_fem_rxgain);
|
||||||
def("fem_txgain", _parent->radio_fem_txgain);
|
def("fem_txgain", _parent->radio_fem_txgain);
|
||||||
|
#endif
|
||||||
def("tx", _parent->tx_power_dbm);
|
def("tx", _parent->tx_power_dbm);
|
||||||
def("af", _parent->airtime_factor);
|
def("af", _parent->airtime_factor);
|
||||||
def("rxdelay", _parent->rx_delay_base);
|
def("rxdelay", _parent->rx_delay_base);
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ public:
|
|||||||
const std::string& text() const { return _text; }
|
const std::string& text() const { return _text; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
// Re-enable test once we can SET fem_ values in companion
|
||||||
TEST(CompanionNodePrefs, RxGainSettingsRoundTripIndependently) {
|
TEST(CompanionNodePrefs, RxGainSettingsRoundTripIndependently) {
|
||||||
NodePrefs saved;
|
NodePrefs saved;
|
||||||
saved.rx_boosted_gain = 0;
|
saved.rx_boosted_gain = 0;
|
||||||
@@ -73,6 +75,7 @@ TEST(CompanionNodePrefs, RxGainSettingsRoundTripIndependently) {
|
|||||||
EXPECT_EQ(0, loaded.radio_fem_rxgain);
|
EXPECT_EQ(0, loaded.radio_fem_rxgain);
|
||||||
EXPECT_EQ(1, loaded.radio_fem_txgain);
|
EXPECT_EQ(1, loaded.radio_fem_txgain);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
::testing::InitGoogleTest(&argc, argv);
|
::testing::InitGoogleTest(&argc, argv);
|
||||||
|
|||||||
Reference in New Issue
Block a user