Added compile time directive.

git-svn-id: http://voip.null.ro/svn/yate@1535 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2007-12-12 09:51:11 +00:00
parent 7001b8a079
commit 2208d91ed1
1 changed files with 8 additions and 2 deletions

View File

@ -572,7 +572,10 @@ bool FSKModem::demodulate(const DataBlock& data)
m_terminated = !m_uart->fskStarted();
if (m_terminated)
break;
m_bits->accumulate(false);
#ifdef YMODEM_BUFFER_BITS
if (m_bits)
m_bits->accumulate(false);
#endif
m_terminated = !m_uart->recvBit(false);
}
@ -580,7 +583,10 @@ bool FSKModem::demodulate(const DataBlock& data)
for (int bit = 1; bit >= 0 && !m_terminated; ) {
bit = m_filter->getBit(samples,count);
if (bit >= 0) {
m_bits->accumulate(bit);
#ifdef YMODEM_BUFFER_BITS
if (m_bits)
m_bits->accumulate(bit);
#endif
m_terminated = !m_uart->recvBit(bit);
}
}