ver1
Diff: plans/ChannelPlan_KR920.cpp
- Revision:
- 179:578d8030ba57
- Parent:
- 178:8f7d93f3bbb5
diff -r 8f7d93f3bbb5 -r 578d8030ba57 plans/ChannelPlan_KR920.cpp --- a/plans/ChannelPlan_KR920.cpp Wed Sep 12 15:04:15 2018 -0500 +++ b/plans/ChannelPlan_KR920.cpp Tue Sep 18 08:25:04 2018 -0500 @@ -611,9 +611,11 @@ } if (GetSettings()->Network.ADREnabled) { - GetSettings()->Session.TxDatarate = datarate; - GetSettings()->Session.TxPower = TX_POWERS[power]; - GetSettings()->Session.Redundancy = nbRep; + if (status == 0x07) { + GetSettings()->Session.TxDatarate = datarate; + GetSettings()->Session.TxPower = TX_POWERS[power]; + GetSettings()->Session.Redundancy = nbRep; + } } else { logDebug("ADR is disabled, DR and Power not changed."); status &= 0xFB; // TxPower KO