code: function(data, showStatus, callback) {
      if (showStatus===undefined) showStatus=true;
  
      /* Queue our data to write. If there was previous data and no callback to
      invoke on this data or the previous then just append data. This would happen
      if typing in the terminal for example. */
      if (!callback && writeData.length && !writeData[writeData.length-1].callback) {
        writeData[writeData.length-1].data += data;
      } else {
        writeData.push({data:data,callback:callback,showStatus:showStatus});
        /* if this is our first data, start sending now. Otherwise we're already
        busy sending and will pull data off writeData when ready */
        if (writeData.length==1)
          writeSerialWorker(true);
      }
    }
docs: Throttled serial write