BYTE_ESC
buf[0] = BYTE_ESC;
if (dev->rxstate != STATE_ESCAPE && c == BYTE_ESC) {
return c == BYTE_ESC || c == BYTE_FRAME;