old merge collision fix
serial optimization

Use char indexes for receive buffer size <=256. Saves some instruction
in interrupt handler