diff --git a/src/core/gps/qgsnmeaconnection.cpp b/src/core/gps/qgsnmeaconnection.cpp index ab320af88329..c2a8f7400ec5 100644 --- a/src/core/gps/qgsnmeaconnection.cpp +++ b/src/core/gps/qgsnmeaconnection.cpp @@ -115,7 +115,7 @@ void QgsNmeaConnection::processStringBuffer() mStatus = GPSDataReceived; QgsDebugMsgLevel( QStringLiteral( "*******************GPS data received****************" ), 2 ); } - else if ( substring.startsWith( QLatin1String( "$GPVTG" ) ) ) + else if ( substring.startsWith( QLatin1String( "$GPVTG" ) ) || substring.startsWith( QLatin1String( "$GNVTG" ) ) ) { QgsDebugMsgLevel( substring, 2 ); processVtgSentence( ba.data(), ba.length() ); @@ -129,14 +129,14 @@ void QgsNmeaConnection::processStringBuffer() mStatus = GPSDataReceived; QgsDebugMsgLevel( QStringLiteral( "*******************GPS data received****************" ), 2 ); } - else if ( substring.startsWith( QLatin1String( "$GPGST" ) ) ) + else if ( substring.startsWith( QLatin1String( "$GPGST" ) ) || substring.startsWith( QLatin1String( "$GNGST" ) ) ) { QgsDebugMsgLevel( substring, 2 ); processGstSentence( ba.data(), ba.length() ); mStatus = GPSDataReceived; QgsDebugMsgLevel( QStringLiteral( "*******************GPS data received****************" ), 2 ); } - else if ( substring.startsWith( QLatin1String( "$GPHDT" ) ) ) + else if ( substring.startsWith( QLatin1String( "$GPHDT" ) ) || substring.startsWith( QLatin1String( "$GNHDT" ) ) ) { QgsDebugMsgLevel( substring, 2 ); processHdtSentence( ba.data(), ba.length() );