mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-03-22 04:08:29 -04:00
DSD demod: fixed index overflow
This commit is contained in:
parent
f63fbf80a8
commit
8da0d3a8b4
@ -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;
|
||||
|
@ -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"],
|
||||
|
Loading…
Reference in New Issue
Block a user