ver1
Diff: plans/ChannelPlan_IN865.cpp
- Revision:
- 123:fda4713001cf
- Parent:
- 118:64f20bc150dd
- Child:
- 139:b2e9d643eef9
diff -r 26567b729386 -r fda4713001cf plans/ChannelPlan_IN865.cpp --- a/plans/ChannelPlan_IN865.cpp Thu Jan 04 10:25:32 2018 -0600 +++ b/plans/ChannelPlan_IN865.cpp Thu Jan 04 13:46:15 2018 -0600 @@ -361,7 +361,10 @@ // Use same frequency as TX rxw.Frequency = _channels[_txChannel].Frequency; - if (GetSettings()->Session.TxDatarate > GetSettings()->Session.Rx1DatarateOffset) { + if (GetSettings()->Session.Rx1DatarateOffset >= 6) { + index = GetSettings()->Session.TxDatarate + (GetSettings()->Session.Rx1DatarateOffset == 6 ? 1 : 2); + index = std::min<int>(index, _maxDatarate); + } else if (GetSettings()->Session.TxDatarate > GetSettings()->Session.Rx1DatarateOffset) { index = GetSettings()->Session.TxDatarate - GetSettings()->Session.Rx1DatarateOffset; } else { index = 0;