autowp / arduino-mcp2515

Arduino MCP2515 CAN interface library
MIT License
795 stars 279 forks source link

Interrupts work partially #99

Open dimitris12kara opened 1 year ago

dimitris12kara commented 1 year ago

When I use the attachInterrupt(digitalPinToInterrupt(2),function,FALLING) it works only in some setups I use. What parameters could affect my project? I think something has to do with terminal resistors. In the projects that the interrupt function doesn't work, I can still read the messages if I put the same function inside the loop.The interrupt pin in these situations falls only for the first message but then it stays zero, no matter if it receives messages or not. What can cause this? Is there a way to have the same result with some function inside this library? Any help would be appreciated!