mirror of
https://github.com/g4klx/MMDVM_HS.git
synced 2026-03-01 18:53:53 +01:00
Support for USART1 LCD to SerialPort.cpp
This commit is contained in:
parent
0ec65dcbf7
commit
3ea4d243d6
|
|
@ -356,7 +356,7 @@ void CSerialPort::start()
|
||||||
{
|
{
|
||||||
beginInt(1U, 115200);
|
beginInt(1U, 115200);
|
||||||
|
|
||||||
#if defined(SERIAL_REPEATER)
|
#if defined(SERIAL_REPEATER) || defined(SERIAL_REPEATER_USART1)
|
||||||
beginInt(3U, 9600);
|
beginInt(3U, 9600);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
@ -536,7 +536,7 @@ void CSerialPort::process()
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#if defined(SERIAL_REPEATER)
|
#if defined(SERIAL_REPEATER) || defined(SERIAL_REPEATER_USART1)
|
||||||
case MMDVM_SERIAL:
|
case MMDVM_SERIAL:
|
||||||
writeInt(3U, m_buffer + 3U, m_len - 3U);
|
writeInt(3U, m_buffer + 3U, m_len - 3U);
|
||||||
break;
|
break;
|
||||||
|
|
@ -554,7 +554,7 @@ void CSerialPort::process()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(SERIAL_REPEATER)
|
#if defined(SERIAL_REPEATER) || defined(SERIAL_REPEATER_USART1)
|
||||||
// Drain any incoming serial data
|
// Drain any incoming serial data
|
||||||
while (availableInt(3U))
|
while (availableInt(3U))
|
||||||
readInt(3U);
|
readInt(3U);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue