Skip to content

Commit

Permalink
Update src/core/positioning/nmeagnssreceiver.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Mathieu Pellerin <nirvn.asia@gmail.com>
  • Loading branch information
domi4484 and nirvn committed Jul 25, 2023
1 parent ff39880 commit 70b39d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/positioning/nmeagnssreceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ void NmeaGnssReceiver::processImuSentence( const QString &sentence )
static const int IMU_KQGEO_STATUS_OK_NEW = 1967106;

// Remove checksum
QString sentenceWithoutChecksum = sentence.split( '*' ).first();

const QString sentenceWithoutChecksum = sentence.split( '*' ).first();
QStringList parameters = sentenceWithoutChecksum.split( ',' );
if ( parameters.size() <= PARAMETER_STATUS_INDEX )
return;
Expand Down

0 comments on commit 70b39d4

Please sign in to comment.