From fa9040fdf08e04aec20dd509ff6673ec2fa5718c Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 11 Nov 2020 17:14:05 +0000 Subject: [PATCH] Fix compile issue for the serial repeater. --- SerialPort.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SerialPort.cpp b/SerialPort.cpp index cde3f33..2d8db36 100644 --- a/SerialPort.cpp +++ b/SerialPort.cpp @@ -906,7 +906,8 @@ void CSerialPort::process() space = avail; for (uint16_t i = 0U; i < space; i++) { - uint8_t c = m_repeat.get(); + uint8_t c = 0U; + m_repeat.get(c); writeInt(3U, &c, 1U); } }