 
 bool ZSerial::isSerialCancelled()
 {
+#ifndef ZIMODEM_ESP32
   if(flowControlType == FCT_RTSCTS)
   {
     if(pinSupport[pinCTS])
       return (digitalRead(pinCTS) == ctsInactive);
   }
+#endif
   return false;
 }
 

    }
    else
    if(pinSupport[pinCTS])
      uart_set_hw_flow_ctrl(UART_NUM_2,UART_HW_FLOWCTRL_RTS,SER_BUFSIZE);
  }
  else
    uart_set_hw_flow_ctrl(UART_NUM_2,UART_HW_FLOWCTRL_DISABLE,0);

  switch(flowControlType)
  {
  case FCT_RTSCTS:
#ifndef ZIMODEM_ESP32
    if(pinSupport[pinCTS])
    {
      //debugPrintf("CTS: pin %d (%d == %d)\n",pinCTS,digitalRead(pinCTS),ctsActive);
      return (digitalRead(pinCTS) == ctsActive);
    }
#endif
    return true;
  case FCT_NORMAL:
  case FCT_AUTOOFF:
