Yep that works. And also verified that the interrupt handler is indeed called continiously (I tried to verify that before, but if you get acute dyslectia regarding the difference between bitwise and logical operators you sometimes (read: often) mix them up).
So Richard can use that, in which case he needs to store the received data in another global variable, but it is a bit working around bugs tbh. Detaching the serial interrupt in the interrupt handler also works (btw it would be nice if serial class had just like most others a detach function, instead of attaching it to a null pointer).
Hi all, After the serial rx interrupt executes the specified function, I believe further code execution halts. I am not 100% certain if that is the issue. Why is that behavior happening? I would rather publish my code as a program because my project requires other libraries to function properly. As of right now I will have to settle with posting my main code in here until I figure out how to export my full project as a program. That way it maybe easier to help with this issue having all of the required libraries to run a test.