ver1
Diff: plans/ChannelPlan_IN865.cpp
- Revision:
- 179:578d8030ba57
- Parent:
- 178:8f7d93f3bbb5
diff -r 8f7d93f3bbb5 -r 578d8030ba57 plans/ChannelPlan_IN865.cpp --- a/plans/ChannelPlan_IN865.cpp Wed Sep 12 15:04:15 2018 -0500 +++ b/plans/ChannelPlan_IN865.cpp Tue Sep 18 08:25:04 2018 -0500 @@ -628,9 +628,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