aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/HardwareSerial_private.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2014-04-01 17:19:54 +0200
committerCristian Maglie <c.maglie@bug.st>2014-04-01 17:19:54 +0200
commitc3cfe6b368aa7c2a55d6f4acad2c58f0404ce55d (patch)
tree571daf897bdbe3489dacf5d55e46074d4d975e3a /cores/arduino/HardwareSerial_private.h
parent0099416ea46a0ff29b3d9b5612bcc2f87d0198d2 (diff)
parent9769bac51b126d534be75676aa8b96fa9233ccca (diff)
Merge commit '1ad74' into ide-1.5.x
Diffstat (limited to 'cores/arduino/HardwareSerial_private.h')
-rw-r--r--cores/arduino/HardwareSerial_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/HardwareSerial_private.h b/cores/arduino/HardwareSerial_private.h
index fa20e55..ea41028 100644
--- a/cores/arduino/HardwareSerial_private.h
+++ b/cores/arduino/HardwareSerial_private.h
@@ -99,7 +99,7 @@ void HardwareSerial::_rx_complete_irq(void)
// No Parity error, read byte and store it in the buffer if there is
// room
unsigned char c = *_udr;
- uint8_t i = (unsigned int)(_rx_buffer_head + 1) % SERIAL_BUFFER_SIZE;
+ rx_buffer_index_t i = (unsigned int)(_rx_buffer_head + 1) % SERIAL_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