Esempio n. 1
0
  bool MaybeBluetooth() const {
    /* note: RFCOMM_SERVER is not considered here because this
       function is used to check for the K6-Bt protocol, but the K6-Bt
       will never connect to XCSoar  */

    if (port_type == PortType::RFCOMM)
      return true;

#ifdef HAVE_POSIX
    if (port_type == PortType::SERIAL && path.Contains(_T("/rfcomm")))
      return true;
#endif

#ifdef _WIN32_WCE
    /* on Windows CE, any serial port may be mapped to a Bluetooth
       driver */
    if (port_type == PortType::SERIAL)
      return true;
#endif

    return false;
  }