src/platform/arm-teensy3/usb_serial.c
int usb_serial_peekchar(void)
{
	if (!rx_packet) {
		if (!usb_configuration) return -1;
		rx_packet = usb_rx(CDC_RX_ENDPOINT);
		if (!rx_packet) return -1;
	}
	if (!rx_packet) return -1;
	return rx_packet->buf[rx_packet->index];
}
// peek at the next character, or -1 if nothing received
peek at the next character, or -1 if nothing received
peek at the next character or - 1 if nothing received
int usb_serial_peekchar(void)
{
	if (!rx_packet) {
		if (!usb_configuration) return -1;
		rx_packet = usb_rx(CDC_RX_ENDPOINT);
		if (!rx_packet) return -1;
	}
	if (!rx_packet) return -1;
	return rx_packet->buf[rx_packet->index];
}
int usb_serial_peekchar ( void ) { if ( ! rx_packet ) { if ( ! usb_configuration ) return -1 ; rx_packet = usb_rx ( CDC_RX_ENDPOINT ) ; if ( ! rx_packet ) return -1 ; } if ( ! rx_packet ) return -1 ; return rx_packet -> buf [ rx_packet -> index ] ; }
peek at the next character, or -1 if nothing received
peek at the next character or - 1 if nothing received