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