DSD demod: fixed index overflow

This commit is contained in:
f4exb 2018-02-17 09:35:17 +01:00
parent f63fbf80a8
commit 8da0d3a8b4
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ void DSDDemod::feed(const SampleVector::const_iterator& begin, const SampleVecto
sample = m_dsdDecoder.getFilteredSample() * m_scaleFromShort;
}
if (m_sampleBufferIndex < (1<<17)) {
if (m_sampleBufferIndex < (1<<17)-1) {
m_sampleBufferIndex++;
} else {
m_sampleBufferIndex = 0;

View File

@ -20,7 +20,7 @@ commands = [
["/deviceset", "POST", None, None, "add Rx 2 device set"],
# ["/deviceset/2/device", "PUT", None, {"hwType": "SDRplay1"}, "setup SDRplay on Rx 2"],
["/deviceset/2/device", "PUT", None, {"hwType": "Perseus"}, "setup Perseus on Rx 2"],
["/preset", "PATCH", None, {"deviceSetIndex": 2, "preset": {"groupName": "40m", "centerFrequency": 7130000, "type": "R", "name": "SSB low"}}, "load preset on Rx 2"],
["/preset", "PATCH", None, {"deviceSetIndex": 2, "preset": {"groupName": "40m", "centerFrequency": 7140000, "type": "R", "name": "SSB low"}}, "load preset on Rx 2"],
["/dvserial", "PATCH", {"dvserial": 1}, None, "set DV serial processing for AMBE frames decoding"],
# ["/preset", "PATCH", None, {"deviceSetIndex": 0, "preset": {"groupName": "OM144", "centerFrequency": 145640000, "type": "R", "name": "Repeaters extended"}}, "load preset on Rx 0 twice"],
["/deviceset/0/device/run", "POST", None, None, "Start device on deviceset R0"],