diff --git a/SerialPort.cpp b/SerialPort.cpp index c174fc1..b707c36 100644 --- a/SerialPort.cpp +++ b/SerialPort.cpp @@ -426,10 +426,6 @@ 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;