Skip to content

Commit 38e183f

Browse files
author
mhugent
committedJan 7, 2010
Replaced qWarnings with QgsDebugMsg
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12686 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎src/core/gps/qgsnmeaconnection.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void QgsNMEAConnection::parseData()
7474
mStringBuffer.append( mSource->read( numBytes ) );
7575
processStringBuffer();
7676
emit stateChanged( mLastGPSInformation );
77-
qWarning( mStringBuffer.toLocal8Bit().data() );
77+
QgsDebugMsg( mStringBuffer );
7878
}
7979
}
8080

@@ -102,35 +102,35 @@ void QgsNMEAConnection::processStringBuffer()
102102
QByteArray ba = substring.toLocal8Bit();
103103
if ( substring.startsWith( "$GPGGA" ) )
104104
{
105-
qWarning( substring.toLocal8Bit().data() );
105+
QgsDebugMsg( substring );
106106
processGGASentence( ba.data(), ba.length() );
107107
mStatus = GPSDataReceived;
108108
QgsDebugMsg( "*******************GPS data received****************" );
109109
}
110110
else if ( substring.startsWith( "$GPRMC" ) )
111111
{
112-
qWarning( substring.toLocal8Bit().data() );
112+
QgsDebugMsg( substring );
113113
processRMCSentence( ba.data(), ba.length() );
114114
mStatus = GPSDataReceived;
115115
QgsDebugMsg( "*******************GPS data received****************" );
116116
}
117117
else if ( substring.startsWith( "$GPGSV" ) )
118118
{
119-
qWarning( substring.toLocal8Bit().data() );
119+
QgsDebugMsg( substring );
120120
processGSVSentence( ba.data(), ba.length() );
121121
mStatus = GPSDataReceived;
122122
QgsDebugMsg( "*******************GPS data received****************" );
123123
}
124124
else if ( substring.startsWith( "$GPVTG" ) )
125125
{
126-
qWarning( substring.toLocal8Bit().data() );
126+
QgsDebugMsg( substring );
127127
processVTGSentence( ba.data(), ba.length() );
128128
mStatus = GPSDataReceived;
129129
QgsDebugMsg( "*******************GPS data received****************" );
130130
}
131131
else if ( substring.startsWith( "$GPGSA" ) )
132132
{
133-
qWarning( substring.toLocal8Bit().data() );
133+
QgsDebugMsg( substring );
134134
processGSASentence( ba.data(), ba.length() );
135135
mStatus = GPSDataReceived;
136136
QgsDebugMsg( "*******************GPS data received****************" );

0 commit comments

Comments
 (0)
Please sign in to comment.