ver1
Diff: plans/ChannelPlan_AU915.cpp
- Revision:
- 134:e5ad4bd55ce5
- Parent:
- 115:bcd44682ac1e
- Child:
- 139:b2e9d643eef9
--- a/plans/ChannelPlan_AU915.cpp Tue Feb 06 14:20:31 2018 -0600 +++ b/plans/ChannelPlan_AU915.cpp Wed Feb 14 13:46:25 2018 -0600 @@ -403,7 +403,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; @@ -420,7 +423,15 @@ 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; } }