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


void ZModem::sendDataPacket(uint8_t type, uint8_t* data, int dataSize)
{
  debugPrintf("Send data packet: %d\n",type);
  uint8_t *hbuf = (uint8_t *)malloc((dataSize*2)+64);
  uint8_t hbufIndex=0;
  const uint8_t hcrcBits = 16; // because bin, but not bin32

        return ZSTATUS_INVALIDCHECKSUM;
    }
    *bufSize = *bufSize - (crcBits / 8);
    crc = (crcBits == 16) ? 0 : 0xffffffff;
    if(dtyp==ZMOCHAR_ZCRCG)
      acceptsHeader = false;
    else
      acceptsHeader = true;
    return ZSTATUS_DATA;
  }
  case ZACTION_ESCAPE:
    return ZSTATUS_TIMEOUT;
  case ZACTION_CANCEL:
    crc = (crcBits == 16) ? 0 : 0xffffffff;
    return ZSTATUS_CANCEL;
  default:
    return ZSTATUS_INVALIDCHECKSUM;
  }
}

