refactored a complex comment

pull/1/head
Simen Svale Skogsrud 2011-06-03 15:43:14 +02:00
rodzic bfe7a2ad84
commit 69be1240be
1 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -110,10 +110,7 @@ SIGNAL(USART_RX_vect)
uint8_t data = UDR0;
uint8_t next_head = (rx_buffer_head + 1) % RX_BUFFER_SIZE;
// if we should be storing the received character into the location
// just before the tail (meaning that the head would advance to the
// current location of the tail), we're about to overflow the buffer
// and so we don't write the character or advance the head.
// Write data to buffer unless it is full.
if (next_head != rx_buffer_tail) {
rx_buffer[rx_buffer_head] = data;
rx_buffer_head = next_head;