Try putting a small delay (only maybe 20ms) into your 'loop' function. Just as a debugging step, to see what happens. Sometimes, serial interfaces can get mis-synchronised if there are never any pauses between characters. Do let us know the outcome!
Try putting a small delay (only maybe 20ms) into your 'loop' function. Just as a debugging step, to see what happens. Sometimes, serial interfaces can get mis-synchronised if there are never any pauses between characters. Do let us know the outcome!