       int c=f.read();
       if(c<0)
         break;
-      uint8_t *buf = (uint8_t *)malloc(1);
       buf[0] = (uint8_t)c;
-      int bufLen = 1;
+      bufLen = 1;
       buf = doMaskOuts(buf,&bufLen,maskOuts);
       buf = doStateMachine(buf,&bufLen,&machineState,&machineQue,stateMachine);
       for(int i=0;i<bufLen;i++)

    }
    yield();
  }
  if(bct > 0)
    serial.prints(EOLN);
  f.close();

            break;
        }
      }
    }
    if(serial.isSerialOut())
    {
