sleep mode chars in buffer

X-Bee 2x firmware, END device
using sleep pin with SM=1
sleeps on command, wakes on command, then wait for RTS=1
Is there a more elegant method of removing the residual trash in the buffer (that gets transmitted) without resorting to brute force?
Sending 16 CR’s first works, but only every other time