mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-18 04:45:14 +00:00
Disassociate the ADC overload detection from the DCD LED.
This commit is contained in:
parent
d4e56965da
commit
b8457aed4c
6 changed files with 42 additions and 9 deletions
|
|
@ -167,7 +167,9 @@ void CYSFRX::processNone(q15_t sample)
|
|||
m_lostCount = MAX_SYNC_FRAMES;
|
||||
m_bufferPtr = YSF_SYNC_LENGTH_BITS;
|
||||
m_state = YSFRXS_DATA;
|
||||
|
||||
io.setDecode(true);
|
||||
io.setADCDetection(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -226,7 +228,9 @@ void CYSFRX::processData(q15_t sample)
|
|||
m_lostCount--;
|
||||
if (m_lostCount == 0U) {
|
||||
DEBUG1("YSFRX: sync timed out, lost lock");
|
||||
|
||||
io.setDecode(false);
|
||||
io.setADCDetection(false);
|
||||
|
||||
serial.writeYSFLost();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue