altos: flush stdout when fifo from arduino serial port is empty