@@ -74,7 +74,7 @@ void QgsNMEAConnection::parseData()
74
74
mStringBuffer .append ( mSource ->read ( numBytes ) );
75
75
processStringBuffer ();
76
76
emit stateChanged ( mLastGPSInformation );
77
- qWarning ( mStringBuffer . toLocal8Bit (). data () );
77
+ QgsDebugMsg ( mStringBuffer );
78
78
}
79
79
}
80
80
@@ -102,35 +102,35 @@ void QgsNMEAConnection::processStringBuffer()
102
102
QByteArray ba = substring.toLocal8Bit ();
103
103
if ( substring.startsWith ( " $GPGGA" ) )
104
104
{
105
- qWarning ( substring. toLocal8Bit (). data () );
105
+ QgsDebugMsg ( substring );
106
106
processGGASentence ( ba.data (), ba.length () );
107
107
mStatus = GPSDataReceived;
108
108
QgsDebugMsg ( " *******************GPS data received****************" );
109
109
}
110
110
else if ( substring.startsWith ( " $GPRMC" ) )
111
111
{
112
- qWarning ( substring. toLocal8Bit (). data () );
112
+ QgsDebugMsg ( substring );
113
113
processRMCSentence ( ba.data (), ba.length () );
114
114
mStatus = GPSDataReceived;
115
115
QgsDebugMsg ( " *******************GPS data received****************" );
116
116
}
117
117
else if ( substring.startsWith ( " $GPGSV" ) )
118
118
{
119
- qWarning ( substring. toLocal8Bit (). data () );
119
+ QgsDebugMsg ( substring );
120
120
processGSVSentence ( ba.data (), ba.length () );
121
121
mStatus = GPSDataReceived;
122
122
QgsDebugMsg ( " *******************GPS data received****************" );
123
123
}
124
124
else if ( substring.startsWith ( " $GPVTG" ) )
125
125
{
126
- qWarning ( substring. toLocal8Bit (). data () );
126
+ QgsDebugMsg ( substring );
127
127
processVTGSentence ( ba.data (), ba.length () );
128
128
mStatus = GPSDataReceived;
129
129
QgsDebugMsg ( " *******************GPS data received****************" );
130
130
}
131
131
else if ( substring.startsWith ( " $GPGSA" ) )
132
132
{
133
- qWarning ( substring. toLocal8Bit (). data () );
133
+ QgsDebugMsg ( substring );
134
134
processGSASentence ( ba.data (), ba.length () );
135
135
mStatus = GPSDataReceived;
136
136
QgsDebugMsg ( " *******************GPS data received****************" );
0 commit comments