Skip to content

Commit b298c40

Browse files
author
macho
committed
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
1 parent e4d0a3f commit b298c40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/gps/qgsgpsconnection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ QgsGPSConnection* QgsGPSConnection::detectGPSConnection()
127127
#ifdef WIN32
128128
devicesToTry << "COM1" << "COM2" << "COM3" << "COM4" << "COM5" << "COM6" << "COM7" << "COM8";
129129
#else
130-
devicesToTry << "/dev/ttyS0" << "/dev/ttyS1" << "/dev/ttyS2" << "/dev/ttyS3" << "/dev/ttyUSB0" << "/dev/ttyUSB1";
130+
devicesToTry << "/dev/ttyS0" << "/dev/ttyS1" << "/dev/ttyS2" << "/dev/ttyS3" << "/dev/ttyUSB0" << "/dev/ttyUSB1" << "/dev/rfcomm0" << "/dev/rfcomm1";
131131
#endif
132132
QList<BaudRateType> baudRatesToTry;
133133
baudRatesToTry << BAUD4800 << BAUD9600;
@@ -178,7 +178,7 @@ QgsGPSConnection* QgsGPSConnection::detectGPSConnection()
178178
}
179179
}
180180

181-
//todo: check usb connections
181+
//todo: check usb connections and bluetooth gps devices
182182

183183
return 0;
184184
}

0 commit comments

Comments
 (0)