libClearCore/src/SerialBase.cpp
int16_t SerialBase::CharPeek() {
    // Return if nothing is waiting
    if (m_inTail == m_inHead) {
        return SerialBase::EOB;
    }

    // Get head character
    int16_t peekChar = m_bufferIn[m_inHead];
    return (peekChar);
}
/**
    Attempt to get next character from serial channel without pulling it
    out of the buffer.
**/
Attempt to get next character from serial channel without pulling it
out of the buffer.
Attempt to get next character from serial channel without pulling it out of the buffer .
int16_t SerialBase::CharPeek() {
    if (m_inTail == m_inHead) {
        return SerialBase::EOB;
    }
    int16_t peekChar = m_bufferIn[m_inHead];
    return (peekChar);
}
int16_t SerialBase :: CharPeek ( ) { if ( m_inTail == m_inHead ) { return SerialBase :: EOB ; } int16_t peekChar = m_bufferIn [ m_inHead ] ; return ( peekChar ) ; }
Attempt to get next character from serial channel without pulling it
out of the buffer.
Attempt to get next character from serial channel without pulling it out of the buffer .
// Return if nothing is waiting // Get head character