   while(lastStatus == ZSTATUS_CONTINUE)
   {
     uint16_t bufSize = 0;
-    debugPrintf("Wait for packet...\n");
     ZStatus packetStatus = readZModemPacket(buf,&bufSize);
-    debugPrintf("Got packet status %d\n",packetStatus);
     if(packetStatus == ZSTATUS_TIMEOUT)
     {
       ++timeouts;
+      debugPrintf("RCV: TIMEOUT %d\n",timeouts);
       if(timeouts>=10)
       {
         sendCancel();

    else
    if((packetStatus == ZSTATUS_CANCEL)||(packetStatus == ZSTATUS_FINISH))
    {
      lastStatus = packetStatus;
      break;
    }

  while(lastStatus == ZSTATUS_CONTINUE)
  {
    uint16_t bufSize = 0;
    ZStatus packetStatus = readZModemPacket(buf,&bufSize);
    if(packetStatus == ZSTATUS_TIMEOUT)
    {
      ++timeouts;
      debugPrintf("RCV: TIMEOUT %d\n",timeouts);
      if(timeouts>=10)
      {
        sendCancel();
