Remove CSerialBuffer, use CRingBuffer

This commit is contained in:
Geoffrey Merck 2020-05-10 06:50:35 +02:00
parent 16c3d418eb
commit 03f18451f7
17 changed files with 36 additions and 39 deletions

View file

@ -76,7 +76,8 @@ void CYSFTX::process()
m_poBuffer[m_poLen++] = YSF_START_SYNC;
} else {
for (uint8_t i = 0U; i < YSF_FRAME_LENGTH_BYTES; i++) {
uint8_t c = m_buffer.get();
uint8_t c;
m_buffer.get(c);
m_poBuffer[m_poLen++] = c;
}
}