It is a good idea to post all of your code and not snippets, sometimes the problem is not where you think..

The line you did give is missing a ]

Where is the data coming from? Interrupts?

We need more info.