Fixed serial driver for tty writes