src/slcan.c
/**
 * Gets a byte from the tx buffer
 * 
 * @param byte Where to store the byte
 * 
 * @return true if there is a byte, false otherwise
 */
Gets a byte from the tx buffer

@param byte Where to store the byte

@return true if there is a byte, false otherwise
Gets a byte from the tx buffer @param byte Where to store the byte @return true if there is a byte false otherwise
bool slcan_read_tx_byte(uint8_t *byte)
{
    if ((byte != NULL) && !circbuf_isEmpty(&slcan_txbuf)) {
        *byte = circbuf_pop(&slcan_txbuf);
        return true;
    }
    return false;
}
bool slcan_read_tx_byte ( uint8_t * byte ) { if ( ( byte != NULL ) && ! circbuf_isEmpty ( & slcan_txbuf ) ) { * byte = circbuf_pop ( & slcan_txbuf ) ; return true ; } return false ; }
Gets a byte from the tx buffer
Gets a byte from the tx buffer