aboutsummaryrefslogtreecommitdiff
path: root/cores
diff options
context:
space:
mode:
authorMatt Robinson <git@nerdoftheherd.com>2014-01-29 20:10:32 +0000
committerMatt Robinson <git@nerdoftheherd.com>2014-01-29 20:10:32 +0000
commit4c8a8a2d5b8b607e003a57ecc38abcec8459c261 (patch)
treee091f93157b4b84330242d2c93afe2bc82d6a339 /cores
parent166a6c28ed11c98f361e7868d8886528597212b5 (diff)
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).
Diffstat (limited to 'cores')
-rw-r--r--cores/arduino/HardwareSerial_private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cores/arduino/HardwareSerial_private.h b/cores/arduino/HardwareSerial_private.h
index c0f631f..d3e29c6 100644
--- a/cores/arduino/HardwareSerial_private.h
+++ b/cores/arduino/HardwareSerial_private.h
@@ -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)
{
}