1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-03-13 10:29:35 +01:00

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 fbea640055
commit 6315177191

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)
{
}