mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Fix remote LNA toggle bugs: correct register comparison, add missing implementations, wire up companion radio
getRxBoostedGain was returned true because both 0x94 (power saving) and 0x96 (boosted gain = 1) return true
This commit is contained in:
parent
f4951d0895
commit
8bf63256b6
10 changed files with 32 additions and 15 deletions
|
|
@ -47,3 +47,13 @@ mesh::LocalIdentity radio_new_identity() {
|
|||
RadioNoiseListener rng(radio);
|
||||
return mesh::LocalIdentity(&rng); // create new random identity
|
||||
}
|
||||
|
||||
#if defined(USE_SX1262) || defined(USE_SX1268)
|
||||
void radio_set_rx_boosted_gain_mode(bool rxbgm) {
|
||||
radio.setRxBoostedGainMode(rxbgm);
|
||||
}
|
||||
|
||||
bool radio_get_rx_boosted_gain_mode() {
|
||||
return radio.getRxBoostedGainMode();
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue