Rewrite everything in loop().
That "delay() and assume the transmission is in" is really lame.
You should be reading the data for delimiters/markers of some kind and operating on those.
Rewrite everything in loop().
That "delay() and assume the transmission is in" is really lame.
You should be reading the data for delimiters/markers of some kind and operating on those.