src/circbuf.c
/**
 * Pops a byte off the buffer.
 * 
 * @param buf The buffer to use
 * 
 * @return The byte popped off the buffer.  Returns 0 if the buffer is empty.
 */
Pops a byte off the buffer.

@param buf The buffer to use

@return The byte popped off the buffer.  Returns 0 if the buffer is empty.
Pops a byte off the buffer . @param buf The buffer to use @return The byte popped off the buffer . Returns 0 if the buffer is empty .
uint8_t circbuf_pop(volatile CircBuf *buf)
{
    if (circbuf_isEmpty(buf)) {
        return 0;
    }
    uint16_t tail = buf->tail;
    circbuf_incTail(buf);
    return buf->data[tail];
}
uint8_t circbuf_pop ( volatile CircBuf * buf ) { if ( circbuf_isEmpty ( buf ) ) { return 0 ; } uint16_t tail = buf -> tail ; circbuf_incTail ( buf ) ; return buf -> data [ tail ] ; }
Pops a byte off the buffer.
Pops a byte off the buffer .