Please friends, I really need your help, I already spent thousands of dollars in SMS :lol: :lol: :lol: and I could not figure out the problem .
I’m making a simple program that should get a message, return via SMS and enter the LED blink loop.
As I do not need to know date, time and telephone number, I put a data start identifier for me which is the letter “Z”.
After receiving Z saved another 3 characters in the Buffer variable, send via SMS and try to compare to know if the data is correct, if they are entering the infinite loop
The problem is that the data that the buffer data  and  always get wrong.
I send Zmfa
I get OkZmf and 2 characters that are usually wrong
I’m using pic16f873A, 16Mhz crystal, MickorC compiler.