Skip to content

Commit 051749a

Browse files
committedApr 7, 2012
raw only won't work with GPSes that don't speak NMEA (should fix #4050)
1 parent eca69c2 commit 051749a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/gps/qgsgpsdconnection.cpp

Lines changed: 1 addition & 1 deletion
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,\"raw\":true%1};" ).arg( mDevice.isEmpty() ? mDevice : QString( ",\"device\":%1" ).arg( mDevice ) ).toUtf8() );
44+
socket->write( QString( "?WATCH={\"enable\":true,\"nmea\":true,\"raw\":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)
Please sign in to comment.