ver1
Diff: plans/ChannelPlan_AS923.cpp
- Revision:
- 115:bcd44682ac1e
- Parent:
- 109:41d16d4ab0f0
- Child:
- 118:64f20bc150dd
--- a/plans/ChannelPlan_AS923.cpp Thu Dec 28 12:41:02 2017 -0600 +++ b/plans/ChannelPlan_AS923.cpp Thu Dec 28 13:50:17 2017 -0600 @@ -1029,10 +1029,15 @@ if (channelIndex > 15) { status = 0x00; - } else if (_channels[channelIndex].Frequency == 0) { - status &= 0x02; - } else if (chParam.Frequency != 0 && (chParam.Frequency < _minFrequency || chParam.Frequency > _maxFrequency)) { - status &= 0x01; + } else { + + if (_channels[channelIndex].Frequency == 0) { + status &= 0xFE; + } + + if (chParam.Frequency != 0 && (chParam.Frequency < _minFrequency || chParam.Frequency > _maxFrequency)) { + status &= 0xFD; + } } if (status == 0x03 && GetSettings()->Session.CommandBufferIndex+1 < COMMANDS_BUFFER_SIZE) {