SlashDevin / NeoSWSerial

Efficient alternative to SoftwareSerial with attachInterrupt for RX chars, simultaneous RX & TX
169 stars 42 forks source link

Error using with arduino ISR vector #55

Open alxkos opened 9 months ago

alxkos commented 9 months ago

Hey, having same problem as with SoftwareSerial.h Both having a problem working with PCINT ISR

NeoSWSerial.cpp.o (symbol from plugin): In function `NeoSWSerial::read()':
(.text+0x0): multiple definition of `__vector_4'
.pio\build\328p\src\main.cpp.o (symbol from plugin):(.text+0x0): first 
defined here
SoftwareSerial.cpp.o (symbol from plugin): In function `SoftwareSerial::read()':
(.text+0x0): multiple definition of `__vector_4'
.pio\build\328p\src\main.cpp.o (symbol from plugin):(.text+0x0): first 
defined here

ISR (PCINT1_vect){ digitalWrite(EN_PIN, HIGH); PCICR = 0; x_stall = 1;}

Any suggestions? Thanks