Reorder HardwareSerial init to fix compiler warn

Switch the tx and rx buffer head/tail entries in the HardwareSerial
initialisation list so that they match the order the fields are defined
in. This fixes a compiler warning (repeated for each of the
HardwareSerial source files the header is used in).
This commit is contained in:
Matt Robinson 2014-01-29 20:10:32 +00:00
parent 166a6c28ed
commit 4c8a8a2d5b
1 changed files with 2 additions and 2 deletions

View File

@ -63,8 +63,8 @@ HardwareSerial::HardwareSerial(
_ubrrh(ubrrh), _ubrrl(ubrrl),
_ucsra(ucsra), _ucsrb(ucsrb), _ucsrc(ucsrc),
_udr(udr),
_tx_buffer_head(0), _tx_buffer_tail(0),
_rx_buffer_head(0), _rx_buffer_tail(0)
_rx_buffer_head(0), _rx_buffer_tail(0),
_tx_buffer_head(0), _tx_buffer_tail(0)
{
}