src/circbuf.c
/**
 * Adds the given byte to the buffer.  It will remove the
 * last byte in the buffer if the buffer is full.
 * 
 * @param buf  The buffer to use
 * @param byte The byte to add
 * 
 * @return void
 */
Adds the given byte to the buffer.  It will remove the
last byte in the buffer if the buffer is full.

@param buf  The buffer to use
@param byte The byte to add

@return void
Adds the given byte to the buffer . It will remove the last byte in the buffer if the buffer is full . @param buf The buffer to use @param byte The byte to add @return void
void circbuf_push(volatile CircBuf *buf, uint8_t byte)
{
    buf->data[buf->head] = byte;
    if (byte == '\r') {
        buf->packets++;
    }
    circbuf_incHead(buf);
}
void circbuf_push ( volatile CircBuf * buf , uint8_t byte ) { buf -> data [ buf -> head ] = byte ; if ( byte == ' \r ' ) { buf -> packets ++ ; } circbuf_incHead ( buf ) ; }
Adds the given byte to the buffer.
Adds the given byte to the buffer .