diff options
author | Cristian Maglie <c.maglie@bug.st> | 2013-03-29 15:17:54 +0100 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2013-03-29 15:17:54 +0100 |
commit | f50c307be280dc6ece9e70c43b301c1db36291a0 (patch) | |
tree | e6c411d2638dddc2f14d38ff94b50363ef703fb2 /cores/arduino | |
parent | ab41589c2b92607bec6b830dbebbbc74c4a46b0b (diff) |
Fix deprecated ISR names for ATmega8.
See #881
Diffstat (limited to 'cores/arduino')
-rw-r--r-- | cores/arduino/HardwareSerial.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cores/arduino/HardwareSerial.cpp b/cores/arduino/HardwareSerial.cpp index 6e623d6..eb2365f 100644 --- a/cores/arduino/HardwareSerial.cpp +++ b/cores/arduino/HardwareSerial.cpp @@ -104,7 +104,8 @@ inline void store_char(unsigned char c, ring_buffer *buffer) #if !defined(USART0_RX_vect) && defined(USART1_RX_vect) // do nothing - on the 32u4 the first USART is USART1 #else -#if !defined(USART_RX_vect) && !defined(USART0_RX_vect) +#if !defined(USART_RX_vect) && !defined(USART0_RX_vect) && \ + !defined(USART_RXC_vect) #error "Don't know what the Data Received vector is called for the first UART" #else void serialEvent() __attribute__((weak)); @@ -114,6 +115,8 @@ inline void store_char(unsigned char c, ring_buffer *buffer) ISR(USART_RX_vect) #elif defined(USART0_RX_vect) ISR(USART0_RX_vect) +#elif defined(USART_RXC_vect) + ISR(USART_RXC_vect) // ATmega8 #endif { #if defined(UDR0) |