Thanks for the reply Roy.
You're absolutely right about the ldata thing. Not sure why I'm calling it in the refresh function when it was already called and could be passed as an argument.
Don't rtos and itoa do the same thing if passed an integer?
EDIT: Thanks, Roy. you just solved my problem. I switched to itoa and it fixed it... I just feel a little dum now.