ver1

Revision:
123:fda4713001cf
Parent:
118:64f20bc150dd
Child:
139:b2e9d643eef9
--- 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;