Skip to content

Commit ce44811

Browse files
author
jef
committed
fix gpsd device selection
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14378 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f0941dd commit ce44811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/gps/qgsgpsdconnection.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void QgsGpsdConnection::connected()
4141
{
4242
QgsDebugMsg( "connected!" );
4343
QTcpSocket *socket = qobject_cast< QTcpSocket * >( mSource );
44-
socket->write( QString( "?WATCH={\"enable\":true,\"nmea\":true%1};" ).arg( mDevice.isEmpty() ? mDevice : QString( "\"device\":%1" ).arg( mDevice ) ).toUtf8() );
44+
socket->write( QString( "?WATCH={\"enable\":true,\"nmea\":true%1};" ).arg( mDevice.isEmpty() ? mDevice : QString( ",\"device\":%1" ).arg( mDevice ) ).toUtf8() );
4545
}
4646

4747
void QgsGpsdConnection::error( QAbstractSocket::SocketError socketError )

0 commit comments

Comments
 (0)