spid: flush serial input buffer before command send
spid: account for another type of debug message
spid: handle a control stream containing log packets