ver1
Diff: plans/ChannelPlan_US915.cpp
- Revision:
- 134:e5ad4bd55ce5
- Parent:
- 115:bcd44682ac1e
- Child:
- 139:b2e9d643eef9
diff -r 05a58ba6d281 -r e5ad4bd55ce5 plans/ChannelPlan_US915.cpp --- a/plans/ChannelPlan_US915.cpp Tue Feb 06 14:20:31 2018 -0600 +++ b/plans/ChannelPlan_US915.cpp Wed Feb 14 13:46:25 2018 -0600 @@ -412,7 +412,10 @@ } else { if (window == 1) { if (_txChannel < _numChans125k) { - rxw.Frequency = _freqDBase500k + (_txChannel % 8) * _freqDStep500k; + if (GetSettings()->Network.Mode == lora::PRIVATE_MTS) + rxw.Frequency = _freqDBase500k + (_txChannel / 8) * _freqDStep500k; + else + rxw.Frequency = _freqDBase500k + (_txChannel % 8) * _freqDStep500k; } else rxw.Frequency = _freqDBase500k + (_txChannel - _numChans125k) * _freqDStep500k; @@ -429,7 +432,14 @@ index = DR_8; } } else { - rxw.Frequency = GetSettings()->Session.Rx2Frequency; + if (GetSettings()->Network.Mode == lora::PRIVATE_MTS) + if (_txChannel < _numChans125k) { + rxw.Frequency = _freqDBase500k + (_txChannel / 8) * _freqDStep500k; + } else { + rxw.Frequency = _freqDBase500k + (_txChannel % 8) * _freqDStep500k; + } + else + rxw.Frequency = GetSettings()->Session.Rx2Frequency; index = GetSettings()->Session.Rx2DatarateIndex; } }