mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-07 23:45:07 +00:00
Adding support for STM32F767 boxcar branch
This commit is contained in:
commit
918403c399
12 changed files with 352 additions and 59 deletions
|
|
@ -426,6 +426,10 @@ void CSerialPort::process()
|
|||
m_ptr = 0U;
|
||||
m_len = 0U;
|
||||
}
|
||||
else {
|
||||
m_ptr = 0U;
|
||||
m_len = 0U;
|
||||
}
|
||||
} else if (m_ptr == 1U) {
|
||||
// Handle the frame length
|
||||
m_len = m_buffer[m_ptr] = c;
|
||||
|
|
@ -678,7 +682,8 @@ void CSerialPort::process()
|
|||
uint16_t space = m_repeat.getData();
|
||||
if (space > 0U) {
|
||||
int avail = availableForWriteInt(3U);
|
||||
if (avail < space)
|
||||
|
||||
if (avail < space)
|
||||
space = avail;
|
||||
|
||||
for (uint16_t i = 0U; i < space; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue