Problems passings strings to function with variable args

MichaelMeissner:
In the future, learn to use code tags (hit the '#' button), it helps people read your code.

Good call - I will keep it in mind.

MichaelMeissner:
Your problem is the tmp declaration is on the stack. When you return, the stack is erased, and Serial.println will overwrite it. I would suggest declaring it as:

Thanks but it does not fix the issue.

I think it may have something to do with passing a String to the function P

If I pass a constant string "CHRIS" then it works as expected, but if I put "Chris" into a String and pass that the function returns no data and for all I know never returns.

Any other ideas?

Chris