Skip to content
Permalink
Browse files
added rfcomm devices in autodetect to connect to bluetooth gps devices
git-svn-id: http://svn.osgeo.org/qgis/trunk@12728 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
macho committed Jan 10, 2010
1 parent e4d0a3f commit b298c40aa9202e32714c6bc1f121718f5c8d83b3
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/gps/qgsgpsconnection.cpp
@@ -127,7 +127,7 @@ QgsGPSConnection* QgsGPSConnection::detectGPSConnection()
#ifdef WIN32
devicesToTry << "COM1" << "COM2" << "COM3" << "COM4" << "COM5" << "COM6" << "COM7" << "COM8";
#else
devicesToTry << "/dev/ttyS0" << "/dev/ttyS1" << "/dev/ttyS2" << "/dev/ttyS3" << "/dev/ttyUSB0" << "/dev/ttyUSB1";
devicesToTry << "/dev/ttyS0" << "/dev/ttyS1" << "/dev/ttyS2" << "/dev/ttyS3" << "/dev/ttyUSB0" << "/dev/ttyUSB1" << "/dev/rfcomm0" << "/dev/rfcomm1";
#endif
QList<BaudRateType> baudRatesToTry;
baudRatesToTry << BAUD4800 << BAUD9600;
@@ -178,7 +178,7 @@ QgsGPSConnection* QgsGPSConnection::detectGPSConnection()
}
}

//todo: check usb connections
//todo: check usb connections and bluetooth gps devices

return 0;
}

0 comments on commit b298c40

Please sign in to comment.