       act = ZACTION_CANCEL;
     }
   }
-debugPrintf("RACT0 %d\n",act);
+  //debugPrintf("RACT0 %d\n",act);
   switch(act)
   {
   case ZACTION_HEADER:

      {
      case ZEXPECT_NOTHING:
      {
        uint8_t recvOpt[4] ={0,4,0,ZMOPT_ESCCTL|ZMOPT_ESC8};
        sendHexHeader(ZMOCHAR_ZRINIT, recvOpt);
        break;
      }
      case ZEXPECT_FILENAME:
      {
        filename = "";
        for(int i=0;i<bufSize && buf[i]!=0;i++)
          if(buf[i] >= 32)
            filename += (char)buf[i];

      case ZMOCHAR_ZDATA:
      {
        uint32_t pos=(buf[1]) | ((uint32_t)buf[2] << 8) | ((uint32_t)buf[2] << 16) | ((uint32_t)buf[2] << 24);
        debugPrintf("RCV: ZDATA %d\n",pos);
        if(fileOpen)
        {
          if(pos != Foffset)
          {
            uint8_t byts[4]={(pos & 0xff),((pos >> 8)&0xff),((pos >> 16)&0xff),((pos >> 24)&0xff)};
            debugPrintf("SND: ZRPOS %d!=%d \n",pos,Foffset);
            sendHexHeader(ZMOCHAR_ZRPOS, byts);
          }
          else
            expect = ZEXPECT_DATA;
        }
        else
        if(filename.length() > 0)
        {
          Foffset=0;
