                   break;
               }
             }
-          }
-          while(Serial.availableForWrite()<10)
-          {
-            delay(1);
-            yield();
           }
           yield();
         }

{
  doEcho=true;
  flowControlType=FCT_DISABLED;
  XON=true;
  petsciiMode=false;
  delayMs=0;

          if(flowControlType == FCT_MANUAL)
            XON=false;
        }
        int mark = Serial.availableForWrite();
        int bct=0;
        int lct=0;
        if(logFileOpen)
