Thanh Nguyen / libmDot-dev-mbed5

Files at this revision

API Documentation at this revision

Comitter:
Jenkins@KEILDM1.dc.multitech.prv
Date:
Thu Jan 04 13:46:15 2018 -0600
Parent:
122:26567b729386
Child:
124:e73c9372626e
Commit message:
mdot-library revision 3.0.2-27-g0d6bf96 and mbed-os revision mbed-os-5.5.7

Changed in this revision

libmDot-ARMCC.ar Show annotated file Show diff for this revision Revisions of this file
libmDot-GCC_ARM.a Show annotated file Show diff for this revision Revisions of this file
plans/ChannelPlan_IN865.cpp Show annotated file Show diff for this revision Revisions of this file
Binary file libmDot-ARMCC.ar has changed
Binary file libmDot-GCC_ARM.a has changed
--- 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;