Skip to content

Commit

Permalink
Reorder HardwareSerial init to fix compiler warn
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
ribbons committed Jan 29, 2014
1 parent fbea640 commit 6315177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hardware/arduino/avr/cores/arduino/HardwareSerial_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}

Expand Down

0 comments on commit 6315177

Please sign in to comment.