smathot/OpenSesame — pull request #234 by rsprouse (2014-03-01 00:50:28+00:00)
Title: Flush buffers *before* sending stop/start byte.

In our lab we have found that button boxes sometimes stop responding during an experiment. It appears that the start byte is not always received, possibly because the buffers are flushed too quickly while the start byte is in the buffer. We find that flushing the buffers before sending the start/stop byte is more reliable. Is there any reason not to do so?